/* Premium editorial treatment for the Inprotax news experience.
   All selectors are intentionally scoped so the rest of the site is unaffected. */

.news-showcase {
  --news-ink: #13281c;
  --news-copy: #526159;
  --news-green: #008a32;
  --news-green-dark: #073b22;
  --news-gold: #c9a349;
  --news-line: rgba(19, 40, 28, 0.11);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 112px 0 104px;
  background:
    radial-gradient(circle at 7% 12%, rgba(0, 138, 50, 0.08), transparent 27%),
    radial-gradient(circle at 94% 88%, rgba(201, 163, 73, 0.10), transparent 25%),
    linear-gradient(180deg, #fbfcf9 0%, #f3f6f1 100%);
}

.news-showcase::before,
.news-showcase::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.news-showcase::before {
  top: 0;
  left: 50%;
  width: min(1110px, calc(100% - 48px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(19, 40, 28, 0.2), transparent);
}

.news-showcase::after {
  right: -88px;
  bottom: -100px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(201, 163, 73, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(201, 163, 73, 0.035), 0 0 0 76px rgba(201, 163, 73, 0.025);
}

.news-showcase > .container {
  position: relative;
  z-index: 1;
}

.news-editorial-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 52px;
}

.news-editorial-header__copy {
  max-width: 680px;
}

.news-editorial-header h4 {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 16px;
  color: var(--news-green);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.news-editorial-header h4::before {
  width: 34px;
  height: 2px;
  content: "";
  background: var(--news-gold);
}

.news-editorial-header h2 {
  max-width: 650px;
  margin: 0;
  color: var(--news-ink);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-transform: none;
}

.news-editorial-header h2 span {
  position: relative;
  display: inline-block;
  color: var(--news-green);
}

.news-editorial-header h2 span::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--news-gold), rgba(201, 163, 73, 0));
}

.news-editorial-header__note {
  max-width: 355px;
  margin: 0 0 3px;
  padding-left: 22px;
  border-left: 1px solid rgba(201, 163, 73, 0.55);
  color: var(--news-copy);
  font-size: 15px;
  line-height: 1.75;
}

.news-showcase #news-tiles {
  margin-top: 0;
  margin-right: -15px;
  margin-left: -15px;
}

.news-card-column {
  display: flex;
  margin-bottom: 30px;
}

.news-showcase .newscard {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid var(--news-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 44px rgba(24, 49, 33, 0.07);
  cursor: default;
  transition: transform 0.38s cubic-bezier(0.2, 0.75, 0.25, 1),
              border-color 0.38s ease,
              box-shadow 0.38s ease;
}

.news-showcase .newscard::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--news-green), var(--news-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s ease;
}

.news-showcase .newscard:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 138, 50, 0.24);
  box-shadow: 0 24px 60px rgba(24, 49, 33, 0.14);
}

.news-showcase .newscard:hover::after {
  transform: scaleX(1);
}

.news-showcase .blog__thumb {
  position: relative;
  width: 100%;
  height: 238px;
  overflow: hidden;
  background: #dfe7e1;
}

.news-card__media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.news-showcase .blog__thumb img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1), filter 0.35s ease;
}

.news-showcase .newscard:hover .blog__thumb img {
  transform: scale(1.055);
  filter: saturate(1.05);
}

.news-card__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 32, 18, 0.04) 30%, rgba(8, 32, 18, 0.66) 100%);
}

.news-card__label {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 12px 7px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(8, 40, 22, 0.76);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(7px);
}

.news-showcase .blog__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 27px 28px 29px;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #6f7c74;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.news-card__meta-date {
  color: var(--news-green);
}

.news-card__meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--news-gold);
}

.news-showcase .blog__content__header,
.news-showcase .blog__content__footer {
  margin: 0;
}

.news-showcase .blog__content__header h3 {
  margin: 0 0 15px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
  text-transform: none;
}

.news-showcase .blog__content__header h3 a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--news-ink);
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.25s ease;
}

.news-showcase .blog__content__header h3 a:hover,
.news-showcase .blog__content__header h3 a:focus {
  color: var(--news-green);
}

.news-showcase .blog__content__footer {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.news-showcase .blog__content__footer p {
  display: -webkit-box;
  min-height: 72px;
  margin: 0 0 23px;
  overflow: hidden;
  color: var(--news-copy);
  font-size: 15px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-top: auto;
  color: var(--news-green-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.news-card__link span {
  display: inline-grid;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(0, 138, 50, 0.25);
  border-radius: 50%;
  place-items: center;
  color: var(--news-green);
  font-size: 16px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.news-card__link:hover,
.news-card__link:focus {
  color: var(--news-green);
  text-decoration: none;
}

.news-card__link:hover span,
.news-card__link:focus span {
  color: #fff;
  background: var(--news-green);
  transform: translateX(3px);
}

.news-showcase .show-news-details:focus-visible,
.news-view-all:focus-visible {
  outline: 3px solid rgba(201, 163, 73, 0.52);
  outline-offset: 4px;
}

.news-showcase__actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.news-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 24px 0 28px;
  border: 1px solid var(--news-green-dark);
  border-radius: 999px;
  background: var(--news-green-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.115em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(7, 59, 34, 0.18);
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.news-view-all span {
  color: var(--news-gold);
  font-size: 20px;
  line-height: 0;
  transition: transform 0.3s ease;
}

.news-view-all:hover,
.news-view-all:focus {
  color: var(--news-green-dark);
  background: transparent;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(7, 59, 34, 0.11);
}

.news-view-all:hover span,
.news-view-all:focus span {
  transform: translateX(4px);
}

/* Article modal */
.news-modal .modal-dialog {
  max-width: 860px;
}

.news-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(5, 30, 16, 0.28);
}

.news-modal .modal-body {
  padding: 0 0 34px;
}

.news-modal #modalImage {
  width: 100%;
  max-height: 420px;
  margin: 0 0 30px !important;
  border-radius: 0 !important;
  object-fit: cover;
}

.news-modal #modalDate,
.news-modal #modalTitle,
.news-modal #modalDesc,
.news-modal .modal-body > hr {
  margin-right: 40px !important;
  margin-left: 40px !important;
}

.news-modal #modalDate {
  margin-bottom: 12px !important;
  color: var(--news-green, #008a32) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.news-modal #modalTitle {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  color: #13281c;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-transform: none;
}

.news-modal .modal-body > hr {
  border: 0;
  border-top: 1px solid rgba(19, 40, 28, 0.12);
}

.news-modal #modalDesc {
  margin-bottom: 0;
  color: #526159;
  font-size: 16px;
  line-height: 1.75;
}

.news-modal .modal-footer {
  padding: 17px 28px;
  border-top: 1px solid rgba(19, 40, 28, 0.1);
  background: #f6f8f5;
}

.news-modal .modal-footer .btn {
  min-width: 108px;
  padding: 10px 20px;
  border: 1px solid #073b22;
  border-radius: 999px;
  background: #073b22;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-page-showcase {
  padding-top: 80px;
}

.news-page-showcase #news-loader {
  color: var(--news-green);
}

@media only screen and (max-width: 991px) {
  .news-showcase {
    padding: 88px 0 78px;
  }

  .news-editorial-header {
    display: block;
    margin-bottom: 42px;
  }

  .news-editorial-header h2 {
    font-size: 42px;
  }

  .news-editorial-header__note {
    max-width: 620px;
    margin-top: 25px;
  }
}

@media only screen and (max-width: 767px) {
  .news-showcase {
    padding: 72px 0 64px;
  }

  .news-editorial-header {
    margin-bottom: 35px;
  }

  .news-editorial-header__copy,
  .news-editorial-header__note {
    width: 100%;
    max-width: 100%;
  }

  .news-editorial-header__note {
    overflow-wrap: anywhere;
  }

  .news-editorial-header h2 {
    font-size: 36px;
    line-height: 1.14;
  }

  .news-card-column {
    margin-bottom: 22px;
    padding-right: 0;
    padding-left: 0;
  }

  .news-showcase #news-tiles {
    margin-right: 0;
    margin-left: 0;
  }

  .news-showcase .blog__thumb {
    height: 225px;
  }

  .news-showcase .blog__content {
    padding: 24px 23px 26px;
  }

  .news-showcase .blog__content__header h3 {
    font-size: 21px;
  }

  .news-showcase .blog__content__header h3 a,
  .news-showcase .blog__content__footer p {
    overflow-wrap: anywhere;
  }

  .news-modal #modalDate,
  .news-modal #modalTitle,
  .news-modal #modalDesc,
  .news-modal .modal-body > hr {
    margin-right: 24px !important;
    margin-left: 24px !important;
  }

  .news-modal #modalTitle {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-showcase *,
  .news-showcase *::before,
  .news-showcase *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
