/* Header panel for the latest published news. */
.toate-stirile-desktop-trigger {
  display: block;
  padding: 2px 12px 3px;
  border-radius: 15px;
  background: #03d9a9;
  color: #fff;
  font-weight: 600;
  line-height: 1.5;
}

.toate-stirile-desktop-trigger:hover,
.toate-stirile-desktop-trigger:focus {
  background: #00c892;
  color: #fff;
  text-decoration: none;
}

.toate-stirile-mobile-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin-left: 1em;
}

.ico-toate-stirile-mobile {
  display: block;
  width: 25px;
  height: 25px;
}

.toate-stirile-desktop-trigger:focus-visible,
.toate-stirile-mobile-trigger:focus-visible,
.toate-stirile-panel-close:focus-visible,
.toate-stirile-panel-button:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

body.toate-stirile-panel-open {
  overflow: hidden;
}

.toate-stirile-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.toate-stirile-panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.toate-stirile-panel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toate-stirile-panel.active .toate-stirile-panel-overlay {
  opacity: 1;
}

.toate-stirile-panel-content {
  position: absolute;
  top: 0;
  left: -350px;
  width: 350px;
  max-width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  transition: left 0.3s ease;
}

.toate-stirile-panel.active .toate-stirile-panel-content {
  left: 0;
}

.toate-stirile-panel-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
}

.toate-stirile-panel-title {
  margin: 0;
  color: #000;
  font-size: 24px;
  font-weight: 700;
}

.toate-stirile-panel-close {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
}

.toate-stirile-panel-close:hover {
  color: #666;
}

.toate-stirile-panel-divider {
  height: 1px;
  margin: 0 20px;
  background: #e0e0e0;
}

.toate-stirile-panel-date {
  padding: 15px 20px;
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

.toate-stirile-panel-news {
  padding: 0 20px 20px;
}

.toate-stirile-panel-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.toate-stirile-panel-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.toate-stirile-panel-item a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.toate-stirile-panel-item-content {
  display: flex;
  gap: 12px;
}

.toate-stirile-panel-item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
}

.toate-stirile-panel-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toate-stirile-panel-item-text {
  min-width: 0;
  flex: 1;
}

.toate-stirile-panel-item-title {
  display: -webkit-box;
  margin-bottom: 8px;
  overflow: hidden;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.toate-stirile-panel-item-meta {
  display: flex;
  flex-direction: row;
  gap: 4px;
  color: #666;
  font-size: 12px;
}

.toate-stirile-panel-item-time {
  font-weight: 500;
}

.toate-stirile-panel-item-category {
  color: #999;
  font-weight: 400;
}

.toate-stirile-panel-footer {
  position: sticky;
  bottom: 0;
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  background: #fff;
}

.toate-stirile-panel-button {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border-radius: 4px;
  background: #03d9a9;
  color: #000;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.toate-stirile-panel-button:hover {
  background: #00c892;
  color: #000;
  text-decoration: none;
}

@media (max-width: 575px) {
  .toate-stirile-panel-content {
    left: -100%;
    width: 100%;
  }
}
