/* =================================================
   NEWS & EVENTS – ARCHIVES
================================================= */

/* Background */
body.category-news,
body.category-events {
  background: #f3f3f3;
}

/* ---------- NEWSROOM ---------- */

.newsroom-title {
  font-size: 42px;
  letter-spacing: -0.5px;
}

.newsroom-card {
  background: #ffffff;
  border-radius: 26px;
  padding: 30px 30px;
  margin-bottom: 28px;
}

.newsroom-thumb {
  flex: 0 0 340px;
  max-width: 340px;
}

.newsroom-thumb-link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
}

.newsroom-thumb-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 15px;
}

.newsroom-card-title {
  font-size: 24px;
  font-weight: 600;
}

.newsroom-card-title-link {
  color: #111;
  text-decoration: none;
}

.newsroom-excerpt {
  font-size: 14.5px;
  line-height: 1.7;
  color: #444;
  max-width: 780px;
}


.newsroom-btn {
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 10px 26px;
  font-size: 14px;
  text-transform: lowercase;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* Hover & focus */
.newsroom-btn:hover,
.newsroom-btn:focus {
  background: #1c1c1c; /* subtle lighter black */
  color: #ffffff;

  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Active (click) */
.newsroom-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 767.98px) {
  .newsroom-title {
    font-size: 32px;
  }

  .newsroom-card {
    padding: 22px;
  }

  .newsroom-thumb {
    max-width: 100%;
    flex: 0;
  }

  .newsroom-thumb-img {
    height: 220px;
  }
}

/* Full content formatting inside cards */
.newsroom-fullcontent p:last-child {
  margin-bottom: 0;
}

.newsroom-fullcontent p,
.newsroom-fullcontent ul,
.newsroom-fullcontent ol {
  font-size: 14.5px;
  line-height: 1.7;
  color: #444;
}

/* Optional: keep images in content responsive */
.newsroom-fullcontent img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------
   NEWSROOM PAGINATION
--------------------------------- */

.newsroom-pagination-wrap {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.newsroom-pagination {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

/* WP outputs <a class="page-numbers"> and <span class="page-numbers current"> */
.newsroom-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  background: #ffffff;
  color: #111;
  text-decoration: none;
  border-radius: 999px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* Hover */
.newsroom-pagination a.page-numbers:hover {
  background: #f6f6f6;
  transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* Current */
.newsroom-pagination .page-numbers.current {
  background: #000;
  color: #fff;
box-shadow: 0 12px 26px rgba(0,0,0,0.10);
}

/* Dots */
.newsroom-pagination .page-numbers.dots {
  background: transparent;
  box-shadow: none;
  min-width: auto;
  padding: 0 6px;
  height: auto;
}

/* Smaller on mobile */
@media (max-width: 767.98px) {
  .newsroom-pagination {
    gap: 8px;
  }

  .newsroom-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
  }
}

/* --------------------------------
   PAGINATION ARROWS – SVG ICONS
--------------------------------- */

/* Hide text arrows */
.newsroom-pagination .page-numbers.prev,
.newsroom-pagination .page-numbers.next {
  font-size: 0;
  position: relative;
}

/* Base arrow icon */
.newsroom-pagination .page-numbers.prev::before,
.newsroom-pagination .page-numbers.next::before {
  content: '';
  width: 14px;
  height: 14px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Left arrow */
.newsroom-pagination .page-numbers.prev::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 19l-7-7 7-7'/%3E%3C/svg%3E");
}

/* Right arrow */
.newsroom-pagination .page-numbers.next::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}

/* Hover – change arrow color */
.newsroom-pagination a.page-numbers:hover::before {
  filter: brightness(0.2);
}

/* Active page – white arrow on black */
.newsroom-pagination .page-numbers.current.prev::before,
.newsroom-pagination .page-numbers.current.next::before {
  filter: invert(1);
}

/* =================================================
   EVENTS ARCHIVE – LIKE MOCKUP
================================================= */

body.category-events {
  background: #f3f3f3;
}

.events-title {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* Card */
.events-card {
  background: #ffffff;
  border-radius: 26px;
  padding: 34px 38px;
  margin-bottom: 28px;
}

.events-thumb {
  flex: 0 0 340px;
  max-width: 340px;
}

.events-thumb-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

/* Title & content */
.events-card-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.events-body p,
.events-body ul,
.events-body ol {
  font-size: 14.5px;
  line-height: 1.7;
  color: #444;
}

.events-body p:last-child {
  margin-bottom: 0;
}

/* Divider line */
.events-divider {
  margin-top: 26px;
  margin-bottom: 18px;
  height: 1px;
  background: rgba(0,0,0,0.08);
}

/* Bottom meta */
.events-meta {
  display: grid;
  gap: 14px;
}

.events-meta-label {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}

.events-meta-value {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  max-width: 760px;
}

/* Button */
.events-btn {
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 10px 26px;
  font-size: 14px;
  text-transform: none;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.events-btn:hover,
.events-btn:focus {
  background: #1c1c1c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.events-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Responsive */
@media (max-width: 767.98px) {
  .events-title {
    font-size: 32px;
  }

  .events-card {
    padding: 22px;
  }

  .events-thumb {
    max-width: 100%;
    flex: auto;
  }

  .events-thumb-img {
    height: 220px;
  }

  .events-cta {
    justify-content: flex-start;
  }
}


/* =================================================
   NEWS SINGLE – CONSISTENT WITH NEWS ARCHIVE
================================================= */

body.single-post.category-news {
  background: #f3f3f3;
}

/* Back link */
.news-single-back {
  text-decoration: none;
  color: #111;
  font-size: 13px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.news-single-back:hover {
  opacity: 1;
  color:#000;
}

/* Title + meta */
.news-single-title {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.6px;
}

.news-single-meta {
  font-size: 13px;
  color: #666;
}

/* Hero image */
.news-single-hero {
  border-radius: 26px;
  overflow: hidden;
}

.news-single-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* White content card */
.news-single-card {
  background: #fff;
  border-radius: 26px;
  padding: 40px;
}

/* Content typography (keeps formatting from editor) */
.news-single-content p,
.news-single-content ul,
.news-single-content ol {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.news-single-content h2 {
  font-size: 22px;
  margin-top: 28px;
  margin-bottom: 12px;
}

.news-single-content h3 {
  font-size: 18px;
  margin-top: 22px;
  margin-bottom: 10px;
}

.news-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Prev/Next navigation styled like UI chips */
.news-single-nav-box a, a.news-single-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: #fff;
  color: #111;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.news-single-nav-box a:hover {
  background: #f6f6f6;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
}

/* Responsive */
@media (max-width: 767.98px) {
  .news-single-title {
    font-size: 32px;
  }

  .news-single-card {
    padding: 22px;
  }
}

/* --------------------------------
   SEARCH BAR (News / Events / All posts)
--------------------------------- */

.newsroom-search {
  display: flex;
  justify-content: center;
}

.newsroom-search-inner {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: 999px;
  padding: 5px;
  display: flex;
  gap: 10px;
  border:1px solid #eaeaea;
}

.newsroom-search-input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 8px 16px 8px 24px;
  border-radius: 999px;
  font-size: 16px;
}

.newsroom-search-btn {
  border: 0;
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 12px;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.newsroom-search-btn:hover {
  background: #1c1c1c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

@media (max-width: 767.98px) {
  .newsroom-search-inner {
    flex-direction: column;
    border-radius: 18px;
  }

  .newsroom-search-btn,
  .newsroom-search-input {
    border-radius: 14px;
  }
}

/* --------------------------------
   SEARCH BUTTON – ICON ONLY
--------------------------------- */
/* --------------------------------
   SEARCH BUTTON WITH SVG ICON
--------------------------------- */

.newsroom-search-btn {
  border: 0;
  background: #000;

  width: 40px;
  height: 40px;

  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  padding: 0;

  transition:
    background-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* SVG icon */
.newsroom-search-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* Hover */
.newsroom-search-btn:hover {
  background: #1c1c1c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Active */
.newsroom-search-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}


/* --------------------------------
   Search icon animation
--------------------------------- */

.newsroom-search-btn .newsroom-search-icon {
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.newsroom-search-btn:hover .newsroom-search-icon {
  transform: scale(1.08) rotate(-6deg);
}

.newsroom-search-btn:active .newsroom-search-icon {
  transform: scale(0.98) rotate(0deg);
}

/* =================================
   SEARCH – MOBILE VERSION
================================= */

@media (max-width: 767.98px) {

  /* Hide button on mobile (Enter/search on keyboard) */
  .newsroom-search-btn {
    display: none;
  }

  /* Container */
  .newsroom-search-inner {
    padding: 6px 12px;
    border-radius: 999px;
  }

  /* Input with icon inside */
  .newsroom-search-input {
    width: 100%;
    font-size: 16px; /* prevents iOS zoom */
    line-height: 1.2;

    padding: 8px 12px 8px 46px; /* space for icon */
    border-radius: 14px;

    background-repeat: no-repeat;
    background-position: 16px 50%;
    background-size: 20px 20px;

    /* Use icon inside input */
    background-image: url("../assets/icons/search_icon-black.svg");
    /* If your icon is white and you want iOS grey look, use the black/grey version instead */
    /* background-image: url("../assets/icons/search_icon-grey.svg"); */
  }

  /* Optional: make icon stronger on focus */
  .newsroom-search-input:focus {
    outline: none;
  }

}