/* Latest News Elementor Widget - style.css
   Clean minimal style inspired by Bloomberg/Reuters list view
*/

.lnew-widget {
  max-width: 480px;
  width: 100%;
  background: #fff;
  box-sizing: border-box;
  padding: 12px 6px 12px;
  color: #111;
  font-family: 'Poppins', sans-serif;
}

/* Header */
.lnew-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
}

.lnew-heading {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* Filter styling (rounded select) */
.lnew-filter-wrap {
  display: flex;
  align-items: center;
  position: relative;
}

.lnew-category-select {
   appearance: none;
   -webkit-appearance: none;
   -moz-appearance: none;
   border: 1px solid #d0d0d0;
   background: #fff;
   padding: 8px 30px 8px 15px;
   border-radius: 5px; /* Changed from 24px to 5px as requested */
   font-size: 13px;
   line-height: 1.4; /* Increased from 1 to 1.4 to prevent cutting off descenders */
   min-width: 140px;
   cursor: pointer;
}

.lnew-cat-btn {
  border: 1px solid #d0d0d0;
  background: #fff;
  padding: 8px 30px 8px 15px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.4;
  min-width: 140px;
  cursor: pointer;
}

.lnew-cat-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  margin-top: 6px;
  min-width: 220px;
  max-height: 260px;
  overflow: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  z-index: 9999;
}

.lnew-cat-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.lnew-cat-list li {
  margin: 0;
}

.lnew-cat-item {
  display: block;
  font-size: 13px;
  color: #111;
  text-decoration: none;
  padding: 6px 10px;
}

.lnew-cat-item:hover {
  background: #f4f4f4;
}

.lnew-filter-wrap::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #333;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.lnew-filter-wrap.open::after {
  transform: translateY(-50%) rotate(180deg);
}

/* List */
.lnew-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Single item */
.lnew-item {
  padding-bottom: 10px;
  padding-top: 4px;
}

.lnew-row {
  display: flex;
  align-items: flex-start; /* Changed back to flex-start for proper alignment */
  gap: 12px;
}

/* time column - narrow */
.lnew-time {
  flex: 0 0 80px; /* Increased width to accommodate longer time strings */
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  padding-top: 2px; /* Small adjustment to align with text */
}

/* title area */
.lnew-title-wrap {
  flex: 1;
}

.lnew-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
}

.lnew-title:hover {
}

/* empty state */
.lnew-empty {
  font-size: 14px;
  padding: 8px 0;
}

/* footer */
.lnew-footer {
  margin-top: 10px;
  text-align: right;
  padding-top: 6px;
}

.lnew-more {
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}

.lnew-more:hover {
}

/* Loading state (simple opacity) */
.lnew-list.lnew-loading {
  opacity: 0.6;
  transition: opacity 0.15s ease-in-out;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .lnew-widget { padding: 10px; }
  .lnew-heading { font-size: 18px; }
  .lnew-time { flex-basis: 80px; font-size: 12px; }
 .lnew-title { font-size: 14px; }
  .lnew-category-select { min-width: 120px; font-size: 13px; padding: 8px 30px 8px 15px; line-height: 1.4; }
  .lnew-cat-btn { min-width: 120px; font-size: 13px; padding: 8px 30px 8px 15px; }
  .lnew-cat-dropdown { min-width: 200px; max-height: 220px; }
}

/* Small accessibility / focus */
.lnew-category-select:focus,
.lnew-title:focus,
.lnew-more:focus {
  outline: 3px solid rgba(0, 0, 0, 0.06);
  outline-offset: 2px;
}
