/* XWOREN public news page
   Scoped to .public-news-page so legacy article and admin screens remain unchanged. */

.public-news-page {
  --news-dark: #06111f;
  --news-dark-soft: #0a1b2d;
  --news-surface: #ffffff;
  --news-surface-soft: #f5f8fb;
  --news-text: #152237;
  --news-muted: #6e7e92;
  --news-border: rgba(19, 38, 61, 0.1);
  --news-green: #2bd381;
  --news-green-deep: #17a963;
  --news-blue: #4f7cff;
  min-height: 100vh;
  background: var(--news-dark) !important;
}

.public-news-page #container.news-site-shell {
  max-width: none;
  min-height: 100vh;
  overflow: hidden;
  background: #edf3f7 !important;
  box-shadow: none;
  opacity: 1;
}

.public-news-page .news-site-nav {
  z-index: 50;
  margin: 0;
  border: 0;
  background: var(--news-dark);
}

.public-news-page .news-site-nav .nav-list-container {
  min-height: 70px;
  border: 0;
  background: rgba(6, 17, 31, 0.97) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.public-news-page .news-site-nav .navbar-brand {
  min-height: 70px;
  color: #ffffff !important;
  font-size: 21px;
}

.public-news-page .news-site-nav .navbar-nav > li > a {
  min-height: 70px;
  padding-top: 25px !important;
  padding-bottom: 21px !important;
  color: #a9b8c9 !important;
}

.public-news-page .news-site-nav .navbar-nav > li > a:hover,
.public-news-page .news-site-nav .navbar-nav > li > a:focus,
.public-news-page .news-site-nav .navbar-nav > li > a.active {
  color: #8cf0bf !important;
  background: transparent !important;
}

.public-news-page .news-site-nav .navbar-nav > li > a.active::before {
  background: linear-gradient(90deg, var(--news-green), #72ebba);
}

.public-news-page .news-site-nav .news-nav-signup > a {
  min-height: auto;
  margin: 15px 0 0 10px;
  padding: 10px 15px !important;
  border: 1px solid rgba(80, 229, 156, 0.32);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--news-green), var(--news-green-deep)) !important;
  color: #052315 !important;
  font-weight: 800;
}

.public-news-page .news-site-nav .news-nav-signup > a:hover,
.public-news-page .news-site-nav .news-nav-signup > a:focus {
  color: #031a10 !important;
  transform: translateY(-1px);
}

.public-news-page .news-categories-menu > a i {
  margin-left: 5px;
  transition: transform 160ms ease;
}

.public-news-page .news-categories-menu.open > a i {
  transform: rotate(180deg);
}

.public-news-page .news-categories-menu .dropdown-menu {
  min-width: 220px;
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #0b1d30;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.3);
}

.public-news-page .news-categories-menu .dropdown-menu > li > a {
  padding: 10px 12px;
  border-radius: 9px;
  color: #b8c7d7;
  font-size: 13px;
  font-weight: 650;
}

.public-news-page .news-categories-menu .dropdown-menu > li > a:hover,
.public-news-page .news-categories-menu .dropdown-menu > li > a:focus {
  background: rgba(43, 211, 129, 0.12);
  color: #eafff4;
}

.public-news-page .news-hero-section {
  position: relative;
  overflow: hidden;
  padding: 54px 0 46px;
  background:
    radial-gradient(circle at 14% 12%, rgba(43, 211, 129, 0.16), transparent 24rem),
    radial-gradient(circle at 88% 8%, rgba(79, 124, 255, 0.18), transparent 28rem),
    linear-gradient(145deg, #06111f, #0a1c30 58%, #081827);
}

.public-news-page .news-hero-section::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.public-news-page .news-hero-section > .container {
  position: relative;
  z-index: 1;
}

.public-news-page .news-hero-copy {
  max-width: 780px;
  margin-bottom: 30px;
}

.public-news-page .news-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(105, 232, 169, 0.2);
  border-radius: 999px;
  background: rgba(43, 211, 129, 0.09);
  color: #89edbd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.public-news-page .news-hero-copy h1 {
  max-width: 720px;
  margin: 0 0 14px;
  color: #f5f9fd;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.public-news-page .news-hero-copy p {
  max-width: 670px;
  margin: 0;
  color: #a9bacb;
  font-size: 16px;
  line-height: 1.7;
}

.public-news-page .news-live-ticker {
  position: relative;
  min-height: 50px;
  margin: 0 0 24px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.public-news-page .news-live-ticker span.breaking-news {
  margin-right: 24px;
  padding: 9px 14px;
  border-radius: 9px;
  background: var(--news-green);
  color: #052315;
  font-weight: 850;
}

.public-news-page .news-live-ticker span.breaking-news::after {
  top: 5px;
  background: var(--news-green);
}

.public-news-page .news-live-ticker span.new-news {
  margin-top: 9px;
  border-radius: 5px;
  background: var(--news-blue);
}

.public-news-page .news-live-ticker .ticker,
.public-news-page .news-live-ticker .ticker-wrapper.has-js {
  max-width: 100%;
  background: transparent;
}

.public-news-page .news-live-ticker .ticker-content {
  padding-top: 8px;
  color: #91a5ba;
}

.public-news-page .news-live-ticker .ticker-content span.time-news {
  color: #68dfa7;
}

.public-news-page .news-live-ticker .ticker-content a {
  color: #e8f1fa;
}

.public-news-page .news-live-ticker .ticker-content a:hover {
  color: #82ecb8;
}

.public-news-page .news-live-ticker .ticker-swipe,
.public-news-page .news-live-ticker .ticker-swipe span {
  background: #0a1b2d !important;
}

.public-news-page .news-live-ticker .ticker-controls li {
  border-color: rgba(255, 255, 255, 0.22);
}

.public-news-page .news-live-ticker .ticker-controls li::after {
  color: #b6c5d4;
}

.public-news-page .news-feature-grid {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.public-news-page .news-feature-grid .image-slider,
.public-news-page .news-feature-grid > .news-post {
  padding: 5px;
}

.public-news-page .news-feature-grid .news-post {
  overflow: hidden;
  border-radius: 18px;
}

.public-news-page .news-feature-grid .news-post > img {
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
  transition: filter 300ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.public-news-page .news-feature-grid .news-post:hover > img {
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.035);
}

.public-news-page .news-feature-grid .news-post .hover-box,
.public-news-page .news-feature-grid .news-post:hover .hover-box {
  inset: 5px;
  border-radius: 18px;
  background: linear-gradient(to bottom, transparent 18%, rgba(4, 14, 25, 0.2) 42%, rgba(4, 14, 25, 0.96) 100%);
}

.public-news-page .news-feature-grid .news-post .hover-box .inner-hover {
  padding: 0 22px 22px;
  background: transparent;
}

.public-news-page .news-feature-grid .news-post .hover-box h2 {
  margin: 8px 0 9px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.public-news-page .news-feature-grid .image-slider .news-post .hover-box h2 {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
}

.public-news-page .news-feature-grid .news-post .hover-box h2 a {
  color: #ffffff;
}

.public-news-page .news-feature-grid .post-tags li {
  color: #b9c7d5 !important;
}

.public-news-page a.category-post {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(43, 211, 129, 0.9);
  color: #062518;
  font-weight: 850;
  letter-spacing: 0.035em;
}

.public-news-page .news-content-section {
  padding: 54px 0 62px;
  background:
    linear-gradient(180deg, rgba(228, 237, 244, 0.72), transparent 18rem),
    #edf3f7;
}

.public-news-page .news-main-grid {
  display: flex;
  align-items: flex-start;
}

.public-news-page .news-feed-column .block-content {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--news-border);
  border-radius: 24px;
  background: var(--news-surface);
  box-shadow: 0 18px 48px rgba(22, 45, 73, 0.08);
}

.public-news-page .news-feed-column .title-section {
  margin-bottom: 22px;
}

.public-news-page .news-feed-column .title-section h1 {
  color: var(--news-text);
  font-size: 20px;
  letter-spacing: -0.03em;
  text-transform: none;
}

.public-news-page .news-feed-column .title-section h1 span {
  padding-bottom: 13px;
  border-bottom: 3px solid var(--news-green);
}

.public-news-page .news-feed-column .article-post {
  margin-bottom: 16px;
  padding: 13px;
  border-color: var(--news-border);
  border-radius: 19px;
  box-shadow: none;
}

.public-news-page .news-feed-column .article-post:hover {
  border-color: rgba(31, 180, 108, 0.25);
  box-shadow: 0 17px 42px rgba(23, 47, 76, 0.11);
}

.public-news-page .news-feed-column .article-post > .row {
  display: flex;
  align-items: stretch;
}

.public-news-page .news-feed-column .article-post .post-gallery {
  position: relative;
  height: 100%;
  min-height: 190px;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #dfe8ef;
}

.public-news-page .news-feed-column .article-post .post-gallery img {
  width: 100% !important;
  height: 100% !important;
  min-height: 190px;
  object-fit: cover;
  transition: transform 380ms ease;
}

.public-news-page .news-feed-column .article-post:hover .post-gallery img {
  transform: scale(1.035);
}

.public-news-page .news-feed-column .article-post .post-gallery .category-post {
  position: absolute;
  bottom: 10px;
  left: 10px;
}

.public-news-page .news-feed-column .article-post .post-content {
  margin: 0;
  padding: 8px 10px 6px;
}

.public-news-page .news-feed-column .article-post .post-content h2 {
  margin-bottom: 9px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.public-news-page .news-feed-column .article-post .post-content h2 a {
  color: var(--news-text);
}

.public-news-page .news-feed-column .article-post .post-content h2 a:hover {
  color: var(--news-green-deep);
}

.public-news-page .news-feed-column .post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 13px;
  margin: 0;
}

.public-news-page .news-feed-column .post-tags li {
  margin: 0;
  color: #8492a3;
  font-size: 11px;
}

.public-news-page .news-feed-column .post-tags li i {
  margin-right: 5px;
  color: var(--news-green-deep);
}

.public-news-page .news-feed-column .article-post .post-content p {
  margin: 13px 0;
  color: var(--news-muted);
  font-size: 13px;
  line-height: 1.7;
}

.public-news-page .news-feed-column .read-more-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--news-green-deep);
  font-size: 12px;
  font-weight: 800;
}

.public-news-page .news-load-more {
  min-height: 50px;
  margin-top: 20px;
  border: 1px solid rgba(23, 169, 99, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--news-green), #20bb73);
  color: #052416;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(32, 187, 115, 0.2);
}

.public-news-page .news-load-more:hover,
.public-news-page .news-load-more:focus {
  border-color: rgba(23, 169, 99, 0.35);
  background: linear-gradient(135deg, #52e39b, #28c77e);
  color: #031b10;
}

.public-news-page .advertisement {
  min-width: 0;
  margin-bottom: 22px;
  padding: 12px;
  overflow: hidden;
  border: 1px dashed rgba(31, 57, 83, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.public-news-page .advertisement span {
  display: block;
  margin-bottom: 7px;
  color: #93a0ae;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.public-news-page .advertisement img,
.public-news-page .advertisement iframe,
.public-news-page .advertisement ins {
  max-width: 100%;
}

.public-news-page .news-sidebar-column .sidebar {
  min-width: 0;
}

.public-news-page .news-sidebar-column .widget {
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--news-border);
  border-radius: 20px;
  background: var(--news-surface);
  box-shadow: 0 15px 40px rgba(22, 45, 73, 0.07);
}

.public-news-page .news-sidebar-column .tab-posts-widget ul.nav-tabs {
  display: flex;
  gap: 6px;
  padding: 10px;
  border: 0;
  background: var(--news-surface-soft);
}

.public-news-page .news-sidebar-column .tab-posts-widget ul.nav-tabs li {
  width: auto;
  flex: 1 1 auto;
  padding: 0;
}

.public-news-page .news-sidebar-column .tab-posts-widget ul.nav-tabs li a {
  min-height: 40px;
  padding: 11px 9px;
  border: 0;
  border-radius: 10px;
  color: #64768b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.025em;
}

.public-news-page .news-sidebar-column .tab-posts-widget ul.nav-tabs li a:hover,
.public-news-page .news-sidebar-column .tab-posts-widget ul.nav-tabs li.active a {
  background: #ffffff;
  color: var(--news-green-deep);
  box-shadow: 0 6px 18px rgba(28, 48, 72, 0.09);
}

.public-news-page .news-sidebar-column .tab-posts-widget .tab-pane {
  padding: 8px 0 2px;
  background: #ffffff;
}

.public-news-page .news-sidebar-column .list-posts {
  margin: 0;
  padding: 0;
}

.public-news-page .news-sidebar-column .tab-pane ul.list-posts > li {
  display: flex;
  align-items: center;
  min-height: 88px;
  margin: 0;
  padding: 10px 13px;
  border-bottom: 1px solid var(--news-border);
}

.public-news-page .news-sidebar-column .tab-pane ul.list-posts > li:last-child {
  border-bottom: 0;
}

.public-news-page .news-sidebar-column .tab-pane ul.list-posts > li img {
  width: 70px !important;
  height: 64px !important;
  flex: 0 0 70px;
  margin: 0 12px 0 0;
  border-radius: 11px;
  object-fit: cover;
}

.public-news-page .news-sidebar-column .list-posts .post-content {
  min-width: 0;
}

.public-news-page .news-sidebar-column .list-posts .post-content h2 {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.public-news-page .news-sidebar-column .list-posts .post-content h2 a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--news-text);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.public-news-page .news-sidebar-column .list-posts .post-content h2 a:hover {
  color: var(--news-green-deep);
}

.public-news-page .news-sidebar-column .list-posts .post-tags {
  margin: 0;
}

.public-news-page .news-sidebar-column .list-posts .post-tags li {
  color: #8b99a9;
  font-size: 10px;
}

.public-news-page .news-sidebar-column #tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px;
}

.public-news-page .news-sidebar-column #tags .news-tag-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(31, 169, 101, 0.13);
  border-radius: 999px;
  background: rgba(43, 211, 129, 0.07);
  color: #27885b;
  font-size: 11px;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}

.public-news-page .news-sidebar-column #tags .news-tag-link:hover {
  background: var(--news-green);
  color: #052416;
  transform: translateY(-1px);
}

@media (max-width: 1199px) {
  .public-news-page #container.news-site-shell {
    max-width: none;
  }

  .public-news-page .news-site-nav .navbar-nav > li > a {
    padding-right: 11px !important;
    padding-left: 11px !important;
  }

  .public-news-page .news-feature-grid .news-post .hover-box h2 {
    font-size: 18px;
  }
}

@media (max-width: 991px) {
  .public-news-page .news-hero-section {
    padding: 44px 0 38px;
  }

  .public-news-page .news-live-ticker {
    display: block !important;
  }

  .public-news-page .news-live-ticker .ticker {
    width: calc(100% - 170px) !important;
  }

  .public-news-page .news-main-grid {
    display: block;
  }

  .public-news-page .news-main-grid > .news-feed-column,
  .public-news-page .news-main-grid > .news-sidebar-column {
    float: none;
    width: 100%;
  }

  .public-news-page .news-sidebar-column {
    margin-top: 28px;
  }

  .public-news-page .news-sidebar-column .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .public-news-page .news-sidebar-column .sidebar > * {
    min-width: 0;
    margin-bottom: 0;
  }

  .public-news-page .news-sidebar-column .sidebar > .advertisement:first-child,
  .public-news-page .news-sidebar-column .sidebar > .advertisement:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .public-news-page .news-site-nav .navbar-header {
    min-height: 70px;
  }

  .public-news-page .news-site-nav .navbar-brand {
    padding-left: 0;
  }

  .public-news-page .news-site-nav .navbar-toggle {
    margin-right: 0;
  }

  .public-news-page .news-site-nav .navbar-collapse {
    max-height: min(420px, calc(100vh - 82px));
    margin: 0 -15px;
    padding: 10px 15px 16px;
    overflow-y: auto;
    border: 0;
    background: #081827;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.24);
  }

  .public-news-page .news-site-nav .navbar-nav {
    margin: 0;
  }

  .public-news-page .news-site-nav .navbar-nav > li > a {
    min-height: 44px;
    padding: 13px 12px !important;
    border-radius: 10px;
  }

  .public-news-page .news-site-nav .navbar-nav > li > a::before {
    display: none;
  }

  .public-news-page .news-site-nav .news-nav-signup > a {
    min-height: 44px;
    margin: 6px 0 0;
    padding: 12px !important;
    text-align: center;
  }

  .public-news-page .news-categories-menu .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    max-height: 240px;
    margin: 4px 0 7px;
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
  }

  .public-news-page .news-hero-section {
    padding: 36px 0 30px;
  }

  .public-news-page .news-hero-copy {
    margin-bottom: 24px;
  }

  .public-news-page .news-hero-copy h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .public-news-page .news-hero-copy p {
    font-size: 14px;
  }

  .public-news-page .news-live-ticker {
    min-height: 98px;
    padding: 11px;
  }

  .public-news-page .news-live-ticker span.breaking-news {
    margin-bottom: 8px;
  }

  .public-news-page .news-live-ticker .ticker,
  .public-news-page .news-live-ticker .ticker-wrapper.has-js {
    clear: both;
    width: 100% !important;
  }

  .public-news-page .news-live-ticker .ticker-wrapper.has-js {
    position: relative;
    height: 32px;
    margin-left: 0 !important;
  }

  .public-news-page .news-live-ticker .ticker {
    width: calc(100% - 82px) !important;
  }

  .public-news-page .news-live-ticker .ticker-content {
    padding-top: 9px;
  }

  .public-news-page .news-live-ticker .ticker-controls {
    position: absolute;
    top: 3px;
    right: 0;
    margin: 0;
  }

  .public-news-page .news-feature-grid .image-slider.snd-size,
  .public-news-page .news-feature-grid .news-post {
    width: 100% !important;
  }

  .public-news-page .news-feature-grid .news-post > img {
    height: 230px !important;
  }

  .public-news-page .news-feature-grid .image-slider .news-post > img {
    height: 300px !important;
  }

  .public-news-page .news-content-section {
    padding: 34px 0 42px;
  }

  .public-news-page .news-feed-column .block-content {
    padding: 16px;
    border-radius: 20px;
  }

  .public-news-page .news-feed-column .article-post > .row {
    display: block;
  }

  .public-news-page .news-feed-column .article-post .post-gallery,
  .public-news-page .news-feed-column .article-post .post-gallery img {
    height: 220px !important;
    min-height: 220px;
  }

  .public-news-page .news-feed-column .article-post .post-content {
    padding: 16px 4px 5px;
  }

  .public-news-page .news-sidebar-column .sidebar {
    display: block;
  }

  .public-news-page .news-sidebar-column .sidebar > * {
    margin-bottom: 18px;
  }
}

@media (max-width: 540px) {
  .public-news-page .news-hero-section > .container,
  .public-news-page .news-content-section > .container {
    padding-right: 14px;
    padding-left: 14px;
  }

  .public-news-page .news-hero-copy h1 {
    font-size: 36px;
  }

  .public-news-page .news-feature-grid {
    border-radius: 18px;
  }

  .public-news-page .news-feature-grid .image-slider .news-post > img {
    height: 270px !important;
  }

  .public-news-page .news-feature-grid .news-post .hover-box .inner-hover {
    padding: 0 16px 17px;
  }

  .public-news-page .news-feature-grid .image-slider .news-post .hover-box h2,
  .public-news-page .news-feature-grid .news-post .hover-box h2 {
    font-size: 19px;
    line-height: 1.25;
  }

  .public-news-page .news-feature-grid .post-tags li:nth-child(2) {
    display: none;
  }

  .public-news-page .news-feed-column .article-post .post-gallery,
  .public-news-page .news-feed-column .article-post .post-gallery img {
    height: 190px !important;
    min-height: 190px;
  }

  .public-news-page .news-feed-column .article-post .post-content h2 {
    font-size: 18px;
  }

  .public-news-page .news-feed-column .article-post .post-content p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
}

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