/**
 * Dynamic News archive refinements.
 *
 * The structural design remains in main.css from the static reference. These
 * rules cover the server-rendered controls, dynamic results, and accessibility
 * states introduced by the WordPress conversion.
 */

.news-page .explore-news-insight-section-wrapper {
  padding-bottom: 90px;
}

.news-page .news-filter-section .section-heading {
  margin-bottom: 32px;
}

.news-page .news-filter-form {
  margin: 0;
}

.news-page .news-dropdown-toggle {
  width: 100%;
  font-family: inherit;
  text-align: left;
}

.news-page .news-dropdown-toggle:focus-visible,
.news-page .news-region-toggle:focus-visible,
.news-page .news-clear-selection:focus-visible,
.news-page .news-apply-selection:focus-visible,
.news-page .tab-button:focus-visible,
.news-page .pagination-number:focus-visible,
.news-page .search-input:focus-visible,
.news-page .news-search-submit:focus-visible {
  outline: 2px solid #21a4dd;
  outline-offset: 3px;
}

.news-page .news-region-toggle {
  display: flex;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.news-page .news-region-toggle::before {
  content: "+";
  width: 18px;
  flex: 0 0 18px;
  font-weight: 600;
}

.news-page .main-option.active .news-region-toggle::before {
  content: "−";
}

.news-page .main-option.active .sub-options {
  display: block;
}

.news-page .news-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.news-page .news-clear-selection,
.news-page .news-apply-selection {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.news-page .news-clear-selection {
  color: #21a4dd;
  text-decoration: none;
}

.news-page .news-apply-selection {
  padding: 4px 12px;
  border-radius: 20px;
  background: #002e53;
  color: #fff;
}

.news-page .search-box {
  padding-top: 0;
  padding-bottom: 0;
}

.news-page .news-search-submit {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.news-page .search-input {
  min-height: 40px;
}

.news-page .main-news-wrapper-image,
.news-page .main-news-wrapper-image > a {
  display: block;
  width: 100%;
  height: 390px;
  overflow: hidden;
}

.news-page .main-news-wrapper-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-page .main-news-wrapper-content {
  height: 100%;
}

.news-page .main-news-wrapper-content .news-content-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 390px;
}

.news-page .main-news-wrapper-content .section-sub-heading {
  font-size: 30px;
  line-height: 1.2;
}

.news-page .main-news-wrapper-content .section-sub-heading a,
.news-page .news-card-text a {
  color: var(--color-primary);
  text-decoration: none;
}

.news-page .main-news-wrapper-content .news-card-link-icon {
  margin-top: auto;
}

.news-page .hr-news-section-wrapper {
  background: #fff;
}

.news-page .hr-news-section-wrapper .news-card {
  height: 100%;
}

.news-page .hr-news-section-wrapper .news-content-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-page .hr-news-section-wrapper .news-card-link-icon {
  margin-top: auto;
}

.news-page .news-image img {
  object-fit: cover;
}

.news-page .news-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  background: #e7e8e9;
  color: #4a4a49;
  text-align: center;
}

.news-page .custom-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 48px 0 80px;
}

.news-page .pagination-number {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cdcfcf;
  border-radius: 5px;
  background: #fff;
  color: #4a4a49;
  text-decoration: none;
}

.news-page .pagination-number:hover,
.news-page .pagination-number.active-page {
  border-color: #21a4dd;
  background: #21a4dd;
  color: #fff;
}

.news-page .pagination-number.active-page {
  font-weight: 600;
}

.news-page .dots {
  color: #797d80;
}

.news-page .news-empty {
  margin: 30px 0;
  color: #4a4a49;
  font-size: 18px;
}

.news-page.rtl .news-dropdown-toggle,
.news-page.rtl .news-region-toggle {
  text-align: right;
}

.news-page.rtl .news-dropdown-arrow {
  margin-right: 6px;
  margin-left: 0;
}

.news-page.rtl .main-news-wrapper-content {
  margin-right: 30px;
  margin-left: 0;
}

@media (max-width: 991.98px) {
  .news-page .news-filter-section .col-lg-7,
  .news-page .news-filter-section .col-lg-5 {
    width: 100%;
  }

  .news-page .main-news-wrapper-content,
  .news-page.rtl .main-news-wrapper-content {
    margin: 30px 0 0;
  }

  .news-page .main-news-wrapper-content .news-content-wrapper {
    min-height: 0;
  }
}

@media (max-width: 767.98px) {
  .news-page .page-section {
    padding-top: 55px !important;
  }

  .news-page .explore-news-insight-section-wrapper {
    padding-bottom: 55px;
  }

  .news-page .news-dropdown-menu {
    width: min(280px, calc(100vw - 48px));
  }

  .news-page .main-news-wrapper-image,
  .news-page .main-news-wrapper-image > a {
    height: 260px;
  }

  .news-page .main-news-wrapper-content .section-sub-heading {
    font-size: 24px;
  }
}
