/* CCIDSA News & Updates: sidebar widget and news page */
:root {
  --news-primary: #087390;
  --news-primary-dark: #065a72;
  --news-soft: #e6f3f7;
  --news-line: #cfe3ea;
}

/* ---------- shared list / timeline ---------- */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  position: relative;
}

/* timeline line */
.news-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--news-line);
}

.news-item {
  position: relative;
  padding: 0 0 14px 0;
  margin-bottom: 14px;
  border-bottom: 1px solid #dbe6eb;
  line-height: 1.4;
}

.news-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

/* timeline dot */
.news-item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--news-primary);
  box-sizing: border-box;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.news-date {
  font-size: 12px;
  font-weight: 600;
  color: #5b6b75;
}

.news-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 10px;
  padding: 1px 8px;
}

.news-tag { color: var(--news-primary); background: var(--news-soft); }
.news-tag.tag-proceedings { color: #7a4b00; background: #fdf0d8; }
.news-tag.tag-conference { color: #3b3b98; background: #e8e8fb; }
.news-tag.tag-deadline { color: #a12a2a; background: #fbe6e6; }
.news-tag.tag-announcement { color: var(--news-primary); background: var(--news-soft); }

.news-title {
  display: block;
  text-transform: none;
  font-size: 14px;
  font-weight: 600;
  color: #212529;
  margin: 0;
}

.news-short {
  font-size: 13px;
  color: #555;
  margin: 2px 0 0;
}

.news-text {
  font-size: 14px;
  color: #444;
  margin: 4px 0 0;
}

/* links: plain underlined text links in a distinct blue.
   Selectors are deliberately specific so the theme's
   ".sidebar .widget ul li a" rule cannot override them. */
.news-list .news-item a.news-link,
.news-list .news-item a.news-link:link,
.news-list .news-item a.news-link:visited {
  display: inline-block;
  margin-top: 6px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #0b5ed7;
  background: none;
  border: 0;
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-list .news-item a.news-link i {
  margin-left: 5px;
  font-size: 11px;
}

.news-list .news-item a.news-link:hover,
.news-list .news-item a.news-link:focus {
  color: #08408f;
  background: none;
  text-decoration: underline;
}

/* ---------- sidebar widget ---------- */
.news-widget .widget-title {
  margin-bottom: 14px;
}

.news-widget-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e3ecf0;
  font-size: 13px;
  text-align: center;
}

.news-widget-footer .news-all {
  display: block;
  padding: 9px 14px;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--news-primary), var(--news-primary-dark));
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(8, 115, 144, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}

.news-widget-footer .news-all:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(8, 115, 144, 0.36);
}

.news-widget-footer .news-all i {
  margin-left: 6px;
  font-size: 12px;
}

.news-contact { color: #555; }

/* ---------- news page ---------- */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.news-chip {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 15px;
  color: var(--news-primary);
  background: #fff;
  border: 1.5px solid var(--news-line);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}

.news-chip:hover { border-color: var(--news-primary); }

.news-chip.active {
  color: #fff;
  background: var(--news-primary);
  border-color: var(--news-primary);
}

.news-year {
  position: relative;
  margin: 6px 0 16px;
  font-size: 20px;
  font-weight: 800;
  color: var(--news-primary-dark);
  letter-spacing: 0.02em;
}

.news-page .news-item {
  background: #fff;
  border: 1px solid #e3ecf0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e3ecf0;
  box-shadow: 0 2px 10px rgba(0, 43, 108, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.news-page .news-item:hover {
  box-shadow: 0 6px 18px rgba(0, 43, 108, 0.12);
  transform: translateY(-1px);
}

.news-page .news-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.news-page .news-date { font-size: 13px; }

.news-page .news-text {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 8px;
}

.news-page .news-list .news-item a.news-link {
  font-size: 15px;
  margin-top: 10px;
}

.news-empty {
  list-style: none;
  color: #5b6b75;
  padding: 10px 0;
}

.news-flash {
  animation: news-flash 2.4s ease-out;
}

@keyframes news-flash {
  0%, 30% { box-shadow: 0 0 0 4px rgba(8, 115, 144, 0.35); }
  100% { box-shadow: 0 2px 10px rgba(0, 43, 108, 0.06); }
}

.news-contact-box {
  background: #f1f8fb;
  border: 1px solid var(--news-line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 8px;
  font-size: 15px;
}

@media (max-width: 575px) {
}

/* the widget stays hidden until real news has loaded */
.news-widget[hidden] {
  display: none !important;
}

/* news page: timeline beside the cards */
.news-page .news-list {
  padding-left: 32px;
}

.news-page .news-list::before {
  left: 8px;
}

.news-page .news-item::before {
  left: -32px;
  top: 24px;
  width: 16px;
  height: 16px;
}

@media (max-width: 575px) {
  .news-page .news-list { padding-left: 24px; }
  .news-page .news-item::before { left: -24px; }
}
