.section-space {
  padding: 80px 0;
}

.news-section-title {
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.news-list-card {
  background: var(--color-white);
  border-radius: 30px 30px 30px 0;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition2);
}

.news-list-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow2);
}

.news-list-card__image-wrap {
  display: block;
  height: 100%;
  min-height: 240px;
}

.news-list-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-list-card__body {
  padding: 30px;
}

.news-list-card__title {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.news-list-card__title a {
  color: var(--color-dark);
}

.news-list-card__title a:hover {
  color: var(--theme-color);
}

.news-list-card__date {
  margin-bottom: 14px;
  color: var(--color-dark);
}

.news-list-card__intro {
  margin-bottom: 20px;
  color: var(--body-text-color);
}

.news-read-more-btn {
  padding: 11px 20px;
  font-size: 13px;
}

.news-back-btn {
  padding: 11px 22px;
  text-transform: none;
}

.news-article-inner {
  max-width: 980px;
}

.news-article-header h1 {
  font-size: 46px;
  line-height: 1.1;
}

.news-article-date {
  color: var(--color-dark);
}

.news-article-primary-image img {
  border-radius: 30px 30px 30px 0 !important;
  box-shadow: var(--box-shadow);
}

.com-news__body {
  color: var(--body-text-color);
  font-size: 18px;
  line-height: 1.9;
}

.com-news__body p {
  margin-bottom: 1.2rem;
}

.com-news__body iframe {
  border: 0;
}

.news-article-gallery img {
  border-radius: 18px;
  width: 100%;
  height: 210px;
  object-fit: cover;
  box-shadow: var(--box-shadow);
}

.com-news__pagination .pagination {
  margin-top: 15px;
}

.com-news__pagination .page-link {
  margin: 0 6px;
}

/*
 * Pagination icons: joomla-fontawesome.css sets [class^="icon-"]:before { content: var(--fa); } which can hide glyphs
 * if FA webfont fails. Force system font + Unicode so prev/next/start/end are always visible.
 */
.com-news__pagination .pagination .page-link > span[class*="icon-angle"],
.com-news__pagination .pagination span.page-link > span[class*="icon-angle"] {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.com-news__pagination .pagination .page-link > span[class*="icon-angle"]::before,
.com-news__pagination .pagination span.page-link > span[class*="icon-angle"]::before {
  font-family: inherit !important;
  font-weight: 700 !important;
  -webkit-font-smoothing: antialiased;
}

.com-news__pagination .pagination .icon-angle-double-left::before {
  content: "\00AB" !important;
}

.com-news__pagination .pagination .icon-angle-double-right::before {
  content: "\00BB" !important;
}

.com-news__pagination .pagination .icon-angle-left::before {
  content: "\2039" !important;
}

.com-news__pagination .pagination .icon-angle-right::before {
  content: "\203A" !important;
}

/* When the template layout override (Font Awesome) is used, keep icons visible/sized */
.com-news__pagination .pagination .page-link i.fa-solid,
.com-news__pagination .pagination .page-link .fa-solid {
  font-size: 0.95rem;
  line-height: 1;
  color: inherit;
}

/* Single article: title always readable (mobile / overlap with fixed navbar) */
.com-news-article .news-article-title,
.com-news-article .news-article-header h1.news-article-title {
  color: var(--color-dark) !important;
  position: relative;
  z-index: 2;
  word-break: break-word;
  display: block;
  visibility: visible;
  opacity: 1;
}

/* Mobile: navbar is position:fixed up to 991px (template style.css), so the article
   wrapper must start well below it. Use a large top padding instead of margin so the
   container background and section spacing stays consistent. */
@media (max-width: 991px) {
  .com-news.com-news-article.news-article-wrap.section-space,
  .com-news-article.news-article-wrap.section-space {
    padding-top: 160px !important;
  }

  .com-news-article .news-article-title,
  .com-news-article .news-article-header h1.news-article-title {
    font-size: 28px;
    line-height: 1.2;
    margin-top: 0;
  }
}

@media (max-width: 575px) {
  .com-news.com-news-article.news-article-wrap.section-space,
  .com-news-article.news-article-wrap.section-space {
    padding-top: 140px !important;
  }

  .com-news-article .news-article-title,
  .com-news-article .news-article-header h1.news-article-title {
    font-size: 24px;
  }
}

/* Same treatment for the news listing page so the H1 isn't hidden by the fixed navbar */
@media (max-width: 991px) {
  .com-news.com-news-articles.news-list-wrap.section-space {
    padding-top: 160px !important;
  }
}

@media (max-width: 575px) {
  .com-news.com-news-articles.news-list-wrap.section-space {
    padding-top: 140px !important;
  }
}

/* Social share row */
.news-share__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
}

.news-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition2, transform 0.2s ease, opacity 0.2s ease);
}

.news-share__btn:hover {
  color: var(--color-white);
  transform: translateY(-2px);
  opacity: 0.92;
}

.news-share__btn--facebook {
  background: #1877f2;
}

.news-share__btn--x {
  background: #000;
}

.news-share__btn--linkedin {
  background: #0a66c2;
}

.news-share__btn--whatsapp {
  background: #25d366;
}

.news-share__btn--copy {
  background: var(--theme-color2, #6c757d);
  cursor: pointer;
}

.news-share__btn--copy.is-copied {
  background: var(--theme-color, #0d6efd);
}

/* YouTube Shorts: vertical frame, centered — not full 16:9 width on desktop */
.news-video-wrap {
  display: flex;
  justify-content: center;
  max-width: 100%;
  clear: both;
}

.news-shorts-embed {
  width: 100%;
  max-width: min(380px, 100%);
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-left: auto;
  margin-right: auto;
}

.news-shorts-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

.com-news__body .news-shorts-embed {
  max-width: min(380px, 100%);
}

.news-gallery-thumb-wrap {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--box-shadow);
}

.news-gallery-thumb {
  transition: transform 0.25s ease;
}

.news-gallery-thumb-wrap:hover .news-gallery-thumb {
  transform: scale(1.03);
}

@media (max-width: 991px) {
  .section-space {
    padding: 60px 0;
  }

  .news-section-title {
    font-size: 34px;
  }

  .news-list-card__body {
    padding: 24px;
  }

  .news-list-card__title {
    font-size: 26px;
  }

  .news-article-header h1 {
    font-size: 36px;
  }
}

@media (max-width: 767px) {
  .news-list-card__image-wrap {
    min-height: 210px;
  }

  .news-list-card__title {
    font-size: 23px;
  }

  .com-news__body {
    font-size: 17px;
    line-height: 1.8;
  }

  .news-article-gallery img {
    height: 180px;
  }
}
