/* Berita (news) listing page — card grid, search/sort toolbar, and pagination.
   Scoped entirely to #sppb-addon-1721705334496, the one specific "Articles" addon
   instance used on /berita. The exact same addon TYPE is reused (unmodified) on the
   Homepage, Klinik listing, Karir and "Semua Regional" pages — none of them are
   affected because none of them share this addon id. Purely visual; no article
   data, links or images are changed. */

#sppb-addon-1721705334496 {
  --tm-news-accent: #00a0af;
  --tm-news-accent-dark: #087f8c;
  --tm-news-border: #e6e9eb;
  --tm-news-text: #1c2b2e;
  --tm-news-muted: #6b7679;
}

/* Tighten the gap between the "Berita" page title and the search/sort toolbar below it.
   Scoped to the specific sections around this addon only. */
.sppb-section:has(+ .sppb-section #sppb-addon-1721705334496) {
  padding-bottom: 12px;
}

.sppb-section:has(#sppb-addon-1721705334496) {
  padding-top: 12px;
}

/* --- Toolbar: search + sort --- */
#sppb-addon-1721705334496 .tm-news-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 28px;
}

#sppb-addon-1721705334496 .tm-news-search {
  position: relative;
  flex: 1 1 280px;
  min-width: 200px;
}

#sppb-addon-1721705334496 .tm-news-search-input {
  width: 100%;
  box-sizing: border-box;
  height: auto !important;
  padding: 9px 46px 9px 16px;
  border: 1px solid var(--tm-news-border);
  border-radius: 10px;
  background: #f7f8f9;
  font-size: 14.5px;
  line-height: 1.42857143;
  color: var(--tm-news-text);
  transition: border-color .2s ease, background-color .2s ease;
}

#sppb-addon-1721705334496 .tm-news-search-input:focus {
  outline: none;
  border-color: var(--tm-news-accent);
  background: #fff;
}

#sppb-addon-1721705334496 .tm-news-search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--tm-news-accent);
  cursor: pointer;
  transition: background-color .2s ease;
}

#sppb-addon-1721705334496 .tm-news-search-submit:hover,
#sppb-addon-1721705334496 .tm-news-search-submit:focus-visible {
  background: rgba(0, 160, 175, 0.12);
  outline: none;
}

#sppb-addon-1721705334496 .tm-news-sort {
  flex: 0 0 auto;
}

#sppb-addon-1721705334496 .tm-news-sort-select {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  height: auto !important;
  padding: 9px 38px 9px 16px;
  border: 1px solid var(--tm-news-border);
  border-radius: 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%236b7679' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  font-size: 14px;
  line-height: 1.42857143;
  color: var(--tm-news-text);
  cursor: pointer;
  min-width: 170px;
}

#sppb-addon-1721705334496 .tm-news-sort-select:focus {
  outline: none;
  border-color: var(--tm-news-accent);
}

/* --- Card grid --- */
#sppb-addon-1721705334496 .tm-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
}

#sppb-addon-1721705334496 .tm-news-grid > [class*="sppb-col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0;
  float: none;
}

#sppb-addon-1721705334496 .tm-news-grid .sppb-addon-article {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--tm-news-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

#sppb-addon-1721705334496 .tm-news-grid .sppb-addon-article:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 40, 45, 0.1);
}

#sppb-addon-1721705334496 .tm-news-grid .sppb-article-img-wrap {
  display: block;
  background: #f0f2f3;
  overflow: hidden;
}

#sppb-addon-1721705334496 .tm-news-grid .sppb-article-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .3s ease;
}

#sppb-addon-1721705334496 .tm-news-grid .sppb-addon-article:hover .sppb-article-img-wrap img {
  transform: scale(1.04);
}

#sppb-addon-1721705334496 .tm-news-grid .sppb-article-info-wrap {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#sppb-addon-1721705334496 .tm-news-grid .sppb-article-meta {
  order: -1;
  margin: 0 0 10px !important;
}

#sppb-addon-1721705334496 .tm-news-grid .sppb-article-meta > span {
  margin: 0 !important;
  font-size: 13px !important;
  color: var(--tm-news-muted) !important;
}

#sppb-addon-1721705334496 .tm-news-grid .sppb-meta-category a,
#sppb-addon-1721705334496 .tm-news-grid .sppb-meta-author {
  color: var(--tm-news-accent-dark) !important;
}

#sppb-addon-1721705334496 .tm-news-grid .sppb-article-introtext {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--tm-news-muted);
}

#sppb-addon-1721705334496 .tm-news-grid .sppb-readmore {
  margin-top: 12px;
  align-self: flex-start;
  color: var(--tm-news-accent);
  font-weight: 600;
  text-decoration: none;
}

#sppb-addon-1721705334496 .tm-news-grid .sppb-readmore:hover {
  color: var(--tm-news-accent-dark);
  text-decoration: underline;
}

#sppb-addon-1721705334496 .tm-news-grid h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}

#sppb-addon-1721705334496 .tm-news-grid h3 a {
  color: var(--tm-news-text);
  font-weight: 700;
  text-decoration: none;
}

#sppb-addon-1721705334496 .tm-news-grid h3 a:hover {
  color: var(--tm-news-accent);
  text-decoration: none;
}

/* --- Pagination --- */
#sppb-addon-1721705334496 .tm-news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 8px;
}

#sppb-addon-1721705334496 .tm-news-pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--tm-news-text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

#sppb-addon-1721705334496 a.tm-news-pagination-link:hover {
  background: rgba(0, 160, 175, 0.1);
  color: var(--tm-news-accent-dark);
  text-decoration: none;
}

#sppb-addon-1721705334496 .tm-news-pagination-current {
  background: var(--tm-news-accent);
  color: #fff !important;
}

#sppb-addon-1721705334496 .tm-news-pagination-ellipsis {
  color: var(--tm-news-muted);
  padding: 0 4px;
}

#sppb-addon-1721705334496 .tm-news-pagination-next,
#sppb-addon-1721705334496 .tm-news-pagination-prev {
  color: var(--tm-news-accent-dark);
}

/* --- Responsive --- */
@media (max-width: 991px) {
  #sppb-addon-1721705334496 .tm-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  #sppb-addon-1721705334496 .tm-news-grid {
    grid-template-columns: 1fr;
  }

  #sppb-addon-1721705334496 .tm-news-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  #sppb-addon-1721705334496 .tm-news-search {
    flex: 0 0 auto;
    width: 100%;
  }

  #sppb-addon-1721705334496 .tm-news-sort-select {
    width: 100%;
  }
}
