/* --------------------
   Newsroom styles
   -------------------- */

/* Reset list styles inside the block so theme list styles don't leak */
.newsroom-ajax-block ul,
.newsroom-ajax-block li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.newsroom-ajax-block ul {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Container */
.nr-wrap {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Filter bar */
.nr-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.nr-tabs {
  display: flex;
  gap: 18px;
}

.nr-tabs .nr-tab {
  font-size: 16px;
  text-transform: uppercase;
  color: #12305c;
  cursor: pointer;
  /* padding-bottom: 6px; */
}

.nr-tabs .nr-tab.active {
  color: #ff6a3d;
  font-weight: 700;
  border-bottom: 2px solid #ff6a3d;
}

/* Search */
.nr-search,
.newsroom-search-input {
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid #949494;
  border-radius: 4px;
  min-width: 400px;
}

/* Grid */
.nr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .nr-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nr-grid { grid-template-columns: 1fr; }
}

/* Card */
.nr-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
  font-family: Ubuntu, sans-serif !important;
}

.nr-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.nr-thumb img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

/* body */
.nr-body {
  padding: 16px;
}

.nr-label {
  display: inline-block;
  font-size: 12px;
  color: #ff6a3d;
  border: 1px solid #ff6a3d;
  padding: 6px 10px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.nr-body h3 {
  margin: 6px 0 10px;
  font-size: 18px;
  line-height: 1.2;
}

.nr-body h3 a {
  color: #12315C;
  text-decoration: none;
  font-family: Ubuntu, sans-serif !important;
}

.nr-body p {
  margin: 0;
  color: #333333;
  font-size: 15px;
  line-height: 1.45;
  font-family: Ubuntu, sans-serif !important;
}

.nr-body .post-date {
  color: #333333;
}

/* Empty */
.nr-empty {
  margin-top: 30px;
  color: #6b7280;
  font-size: 16px;
}

/* Pagination wrapper */
.nr-pagination-wrap {
  margin-top: 32px;
}

/* Pagination list */
.newsroom-pagination-list {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
}

/* Page items */
.newsroom-pagination-list li {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  color: #111827;
  background: #fff;
  transition: all 0.2s ease;
}

/* Hover */
.newsroom-pagination-list li:hover {
  background: #f3f4f6;
}

/* Active page */
.newsroom-pagination-list li.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
  cursor: default;
}

/* Prev / Next */
.newsroom-pagination-list li.prev,
.newsroom-pagination-list li.next {
  font-weight: 700;
}

/* Dots */
.newsroom-pagination-list li.dots {
  border: none;
  cursor: default;
  background: transparent;
  color: #9ca3af;
}

/* Disable hover on dots */
.newsroom-pagination-list li.dots:hover {
  background: transparent;
}

/* Loader (overlay) */
.nr-results-wrap {
  position: relative;
  width: calc(100% - 345px);
}

.nr-loading {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.75);
  z-index: 30;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: #374151;
}

.newsroom-ajax-block.is-loading .nr-loading {
  display: flex;
}

.nr-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #e5e7eb;
  border-top-color: #ff6a3d;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skeleton */
.nr-skeleton {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.nr-skel-card {
  height: 320px;
  background: linear-gradient(90deg, #f3f4f6 25%, #eceff1 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}

.nr-results-wrap .nr-card img {
	width: 100%;
	    height: 100%;
    max-height: 205px;
}

.nr-results-wrap .nr-card {
	height: 100%;
  border-radius: 10px;
}

.newsroom-pagination-list {
	gap: 24px;
}

.newsroom-pagination-list li,
.newsroom-pagination-list li.dots {
  width: 48px;
  height: 48px;
  border: 1px solid var(--wp--preset--color--secondary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px !important;
	color: var(--wp--preset--color--secondary);
}
.newsroom-pagination-list li.active {
	width: 48px;
  height: 48px;
  border: 1px solid var(--wp--preset--color--secondary);
	background-color:var(--wp--preset--color--secondary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.newsroom-pagination-list li:hover,
.newsroom-pagination-list li.dots:hover,
.newsroom-pagination-list li.active:hover {
  background-color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
}

.nr-search, 
.newsroom-search-input {
  border: 1px solid #949494;
  height: 38px;
  padding: 8px 16px 8px 16px;
  border-radius: 5px;
  color: #767676;
  font-size: var(--wp--preset--font-size--large);
  line-height: 1.4;
  height: 64px;
}

.nr-results-main-wrap {
  display: flex;
  gap: 46px;
}

.nr-sidebar-wrap {
  width: 350px;
  height: fit-content;
  position: sticky;
  top: 10px;
  margin-bottom: 30px;
}

.nr-results-main-wrap:not(:has(.nr-sidebar-wrap)) .nr-results-wrap {
  width: 100%;
}

.nr-results-main-wrap:not(:has(.nr-sidebar-wrap)) .nr-results-wrap .nr-grid {
  grid-template-columns: repeat(3, 1fr);
}

.newsform-contact-form .actions .hs-button {
  background-color: #b22a2e;
}

@media (max-width: 991px) {
  .nr-results-main-wrap {
    flex-wrap: wrap;
  }

  .nr-results-wrap,
  .nr-sidebar-wrap {
    width: 100%;
  }

  .nr-bar {
    flex-wrap: wrap;
  }

  .nr-tabs {
    width: 100%;
  }

  .nr-search, .newsroom-search-input {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .nr-search, .newsroom-search-input {
    margin-left: 0;
    min-width: auto;
  }

  .nr-tabs .nr-tab {
    white-space: nowrap;
  }

  .nr-tabs {
    overflow-x: auto;
  }

  .nr-grid {
    grid-template-columns: 1fr !important;
  }
}
