.stw-sa-list {
  display: grid;
  gap: 16px;
}

.stw-sa-item {
  padding: 24px;
  border: 1px solid #eaeaea;
  border-left: 4px solid #E4A82E;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stw-sa-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.stw-sa-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #333333;
  line-height: 1.3;
}

.stw-sa-meta {
  font-size: 0.85rem;
  color: #777777;
  margin-bottom: 16px;
  font-weight: 500;
}

.stw-sa-excerpt {
  color: #555555;
  line-height: 1.6;
  margin-bottom: 16px;
}

.stw-sa-readmore {
  cursor: pointer;
  background-color: #E4A82E;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.stw-sa-readmore:hover {
  background-color: #cf9626;
}

.stw-sa-readmore:active {
  transform: scale(0.98);
}

.stw-sa-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stw-sa-share {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stw-sa-actions .stw-sa-share {
  margin-left: auto;
}

.stw-sa-modal .stw-sa-share__toggle {
  order: 0;
}

.stw-sa-modal .stw-sa-share__menu {
  order: 1;
}

.stw-sa-share__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stw-sa-share__menu[hidden] {
  display: none;
}

.stw-sa-share__toggle,
.stw-sa-share__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #e6e6e6;
  border-radius: 50%;
  background: #ffffff;
  color: #555555;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.stw-sa-share__toggle:hover,
.stw-sa-share__toggle:focus-visible,
.stw-sa-share__action:hover,
.stw-sa-share__action:focus-visible,
.stw-sa-share__action.is-copied {
  color: #ffffff;
  background: #E4A82E;
  border-color: #E4A82E;
  outline: none;
}

.stw-sa-share__toggle svg,
.stw-sa-share__action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.stw-sa-share__status {
  position: absolute;
  bottom: calc(100% + 8px);
  z-index: 3;
  padding: 6px 10px;
  border-radius: 6px;
  background: #333333;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.stw-sa-share__status[hidden] {
  display: none;
}

.stw-sa-actions .stw-sa-share__status {
  right: 0;
}

.stw-sa-modal .stw-sa-share__status {
  left: 0;
}

/* Modal Styles */
.stw-sa-modal {
  display: none;
}

.stw-sa-modal.is-open {
  display: block;
}

.stw-sa-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 999998;
}

.stw-sa-modal__panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, calc(100% - 32px));
  max-height: 85vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 32px;
  z-index: 999999;
}

.stw-sa-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: #aaaaaa;
  padding: 8px;
  border-radius: 50%;
  transition: color 0.2s, background-color 0.2s;
}

.stw-sa-modal__close:hover {
  color: #333333;
  background: #f5f5f5;
}

.stw-sa-modal__title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  color: #222222;
  padding-right: 32px;
  /* space for close button */
}

.stw-sa-modal__meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #eeeeee;
}

.stw-sa-modal__meta {
  font-size: 0.85rem;
  color: #777777;
}

.stw-sa-modal__content {
  color: #444444;
  line-height: 1.7;
  font-size: 1rem;
}

.stw-sa-no-scroll {
  overflow: hidden;
}

/* Featured Image styling */
.stw-sa-thumb {
  margin: -24px -24px 16px -24px;
  border-radius: 4px 8px 0 0;
  overflow: hidden;
}

.stw-sa-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
}

/* Desktop Image Layout */
@media (min-width: 768px) {
  .stw-sa-item--has-thumb {
    display: flex;
    gap: 24px;
    align-items: stretch;
  }

  .stw-sa-item--has-thumb .stw-sa-thumb {
    flex: 0 0 35%;
    margin: -24px 0 -24px -24px;
    border-radius: 4px 0 0 8px;
  }

  .stw-sa-item--has-thumb .stw-sa-thumb img {
    aspect-ratio: auto;
  }

  .stw-sa-item--has-thumb .stw-sa-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .stw-sa-item--has-thumb .stw-sa-actions {
    margin-top: auto;
  }
}

/* Modal Featured Image */
.stw-sa-modal__thumb {
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.stw-sa-modal__thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

/* Widget Heading */
.stw-sa-heading {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 2rem;
  font-weight: 700;
  color: #E4A82E;
  text-align: center;
  text-transform: uppercase;
}

