/* --- smSiteNews 2.4 --- */

.sm-site-news-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.sm-site-news-header-controls {
  padding: 8px 12px;
  border-bottom: 1px solid #e9ebee;
  background-color: #fdfdfd;
  flex-shrink: 0;
}

.sm-site-news-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.sm-site-news-search-input {
  width: 100%;
  padding: 6px 10px 6px 32px;
  border: 1px solid #ccd0d5;
  border-radius: 2px;
  font-size: 14px;
  background-color: #F5F5F5;
  outline: none;
  transition: border-color .2s, background-color .2s;
}

.sm-site-news-search-input:focus {
  border-color: #a8b9d0;
  background-color: #fff;
}

.sm-site-news-search-button {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 32px;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #606770;
}

.sm-hidden-by-search {
  display: none !important;
}

.sm-site-news-content {
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
}

.sm-site-news-content::-webkit-scrollbar {
  width: 8px;
}

.sm-site-news-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.sm-site-news-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.sm-site-news-content::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.sm-site-news-item {
  background-color: #ffffff;
  border: 1px solid #e9ebee;
  margin-bottom: 12px;
  padding: 0;
  cursor: pointer;
  transition: background-color .2s linear;
}

.sm-site-news-item:hover {
  background-color: #f8f9fa;
}

.sm-site-news-item:last-of-type {
  margin-bottom: 0;
}

.sm-site-news-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.sm-site-news-main-wrapper {
  padding: 10px 12px;
}

.sm-site-news-header {
  position: relative;
  padding-right: 20px;
}

.sm-site-news-title-line {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.sm-site-news-title-group {
  flex: 1 1 auto;
  min-width: 0;
}

.sm-site-news-actions {
  flex-shrink: 0;
}

.sm-site-news-share-button {
  background: transparent;
  border: none;
  padding: 4px;
  margin: -4px;
  cursor: pointer;
  color: #606770;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.sm-site-news-share-button:hover {
  background-color: #e4e6eb;
}

.sm-site-news-share-button svg {
  width: 16px;
  height: 16px;
}

.sm-site-news-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 0;
}

.sm-site-news-date {
  font-size: 14px;
  font-weight: 400;
  color: #606770;
}

.sm-site-news-header::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #aaa;
  opacity: 1;
  transition: opacity .3s ease-in-out, transform .3s ease-in-out;
}

.sm-site-news-item.expanded .sm-site-news-header::after {
  transform: translateY(-50%) rotate(180deg);
}

.sm-site-news-item.no-content .sm-site-news-header::after {
  display: none;
}

.sm-site-news-item.no-content {
  cursor: default;
}

.sm-site-news-item.no-content:hover {
  background-color: transparent;
}

.sm-site-news-button,
.sm-site-news-page-link:hover:not(.active) {
  background-color: #f0f2f5;
}

.sm-site-news-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease-in-out;
}

.sm-site-news-item.expanded .sm-site-news-body {
  grid-template-rows: 1fr;
}

.sm-site-news-body-inner {
  overflow: hidden;
}

.sm-site-news-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 4px;
}

.sm-site-news-content-text {
  font-size: 15px;
  line-height: 1.5;
  color: #1c1e21;
}

.sm-site-news-button {
  flex-shrink: 0;
  color: #050505;
  border: 1px solid #ccd0d5;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .2s;
  text-align: center;
  align-self: flex-end;
}

.sm-site-news-button:hover {
  background-color: #e4e6eb;
}

.sm-site-news-pagination {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 8px 12px;
  flex-shrink: 0;
  border-top: 1px solid #e9ebee;
  background-color: #fdfdfd;
}

.sm-site-news-page-link {
  padding: 5px 10px;
  margin-right: 5px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  color: #707070;
}

.sm-site-news-page-link.active {
  background-color: #8ab4f8;
  color: #fff;
}

@keyframes sm-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.sm-site-news-item.sm-effect-fade-in {
  animation: sm-fade-in 0.6s ease-in-out forwards;
}

@keyframes sm-blur-in {
  from { filter: blur(5px); opacity: 0; }
  to { filter: blur(0); opacity: 1; }
}
.sm-site-news-item.sm-effect-blur-in {
  animation: sm-blur-in 0.6s ease-out forwards;
}

@keyframes sm-pixelate-in {
  from { filter: blur(10px) saturate(0); opacity: 0; transform: scale(0.95); }
  to { filter: blur(0) saturate(1); opacity: 1; transform: scale(1); }
}
.sm-site-news-item.sm-effect-pixelate-in {
  animation: sm-pixelate-in 0.6s ease-out forwards;
}

.sm-site-news-ticker-container {
  display: flex;
  align-items: center;
  padding: 10px 0;
  background-color: #F5F5F5;
  color: #333;
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
}

.sm-site-news-ticker-text {
  display: inline-block;
  margin: 0;
  white-space: nowrap;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}


.sm-site-news-share-menu {
  position: fixed;
  z-index: 1001;
  background-color: #fff;
  border: 1px solid #ccd0d5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 4px 0;
  min-width: 150px;
  opacity: 0;
  transform: scale(0.95);
  animation: sm-site-news-share-menu-fade-in 0.15s ease-out forwards;
}

@keyframes sm-site-news-share-menu-fade-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sm-site-news-share-menu-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  color: #1c1e21;
  cursor: pointer;
  text-decoration: none !important;
  box-sizing: border-box;
}

.sm-site-news-share-menu-item:hover {
  background-color: #f0f2f5;
}