#article-quote-01 {
  position: relative;
  margin: 40px 0;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

#article-quote-01.visible {
  animation: quote-appear 0.6s ease-out forwards;
}

#article-quote-01:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#article-quote-01::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: #2d2d2d;
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: bottom;
}

#article-quote-01.visible::before {
  animation: line-appear 0.6s ease-out forwards;
}

#article-quote-01 .quote-content {
  position: relative;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #2d2d2d;
  font-weight: 400;
  margin-bottom: 20px;
  padding-left: 20px;
  opacity: 0;
}

#article-quote-01.visible .quote-content {
  animation: fade-in 0.5s ease-out 0.3s forwards;
}

#article-quote-01 .quote-content::before {
  content: "\201C"; /* Fixed quotation mark using Unicode */
  position: absolute;
  left: -15px; /* Adjusted positioning */
  top: -5px;
  font-size: 3.5rem; /* Slightly reduced size */
  color: #4a4a4a;
  opacity: 0.3; /* Increased contrast */
  line-height: 1;
  font-family: 'Times New Roman', serif; /* Added classic quote style */
}

#article-quote-01 .quote-attribution {
  display: table;
  width: 100%;
  margin-top: 20px;
  border-top: 2px solid #2d2d2d;
  padding-top: 15px;
  opacity: 0;
}

#article-quote-01.visible .quote-attribution {
  animation: fade-in 0.5s ease-out 0.6s forwards;
}

#article-quote-01 .quote-author {
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  font-size: 1rem;
  display: table-cell;
}

#article-quote-01 .quote-source {
  font-size: 0.85rem;
  color: #4a4a4a;
  margin: 5px 0 0;
  display: table-row;
}

#article-quote-01 .quote-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
  opacity: 0;
}

#article-quote-01.visible .quote-actions {
  animation: fade-in 0.5s ease-out 0.8s forwards;
}

#article-quote-01 .action-button {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 6px 12px;
  margin-left: 10px;
  font-size: 0.85rem;
  color: #4a4a4a;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

#article-quote-01 .action-button:hover {
  background: #2d2d2d;
  color: white;
  border-color: #2d2d2d;
}

#article-quote-01 .action-button svg {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

/* SVG styling for all action buttons */
.action-button svg {
  xmlns: "http://www.w3.org/2000/svg";
  viewBox: 0 0 24 24;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Specific SVG styling for each button type */
.copySvg {
  xmlns: "http://www.w3.org/2000/svg";
  viewBox: 0 0 24 24;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shareSvg {
  xmlns: "http://www.w3.org/2000/svg";
  viewBox: 0 0 24 24;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.saveSvg {
  xmlns: "http://www.w3.org/2000/svg";
  viewBox: 0 0 24 24;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tooltip {
  position: absolute;
  background: #1a1a1a;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes quote-appear {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes line-appear {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  #article-quote-01 {
    padding: 25px 20px;
  }
  
  #article-quote-01 .quote-content {
    font-size: 1.1rem;
  }
  
  #article-quote-01 .quote-actions {
    flex-wrap: wrap;
  }
  
  #article-quote-01 .action-button {
    margin-top: 5px;
  }
}