/* Main container for legacy content */

.legacy-post-content body {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }
  
.legacy-post-content {
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    background: linear-gradient(to bottom, #f7fafc, #ffffff);
    margin: 0 auto;
    padding: 2px 25px;
    /* max-width: 900px; */
}

/* Headings */
.legacy-post-content h1 {
    font-size: 2.8em;
    color: #003550;
    text-align: center;
    margin-bottom: 25px;
    margin-top: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}
.legacy-post-content h2 {
    font-size: 2.2em;
    background-color: #003550;
    color: #fff !important;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 30px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.legacy-post-content h3 {
    font-size: 1.9em;
    color: #005f6b;
    margin-top: 20px;
    margin-bottom: 15px;
}
.legacy-post-content h4 {
    font-size: 1.6em;
    color: #00787c;
    margin-top: 18px;
    margin-bottom: 12px;
}

/* Paragraphs and Lists */
.legacy-post-content p {
    font-size: 1.05em;
    margin: 12px 0;
    text-align: justify;
    line-height: 1.8;
}

.legacy-post-content ul,
.legacy-post-content ol {
    margin: 15px 0 25px 30px;
    padding-left: 20px;
}
.legacy-post-content li {
    margin-bottom: 12px;
}

/* Horizontal Rule */
.legacy-post-content hr {
    border: 0;
    border-top: 1px solid #00787c;
    margin: 25px 0;
}

/* Blockquotes */
.legacy-post-content blockquote {
    background-color: #fff8dc;  /* Keeping original light yellow background */
    padding: 25px 25px 25px 35px;  /* Increased padding for quote icon */
    border-left: 6px solid #ffd700;  /* Keeping original gold accent */
    margin: 25px 0;
    font-style: italic;  /* Maintaining italic style */
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);  /* Enhanced shadow for depth */
    position: relative;  /* For positioning the quote icon */
    border-radius: 0 6px 6px 0;  /* Subtle rounding on right side */
}

/* Add decorative quote icon */
.legacy-post-content blockquote::before {
    content: '\201C';  /* Left double quotation mark */
    font-family: Georgia, serif;
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 2.75em;
    color: #4ad30a;  /* Semi-transparent gold matching the border */
    line-height: 1;
}

/* Add subtle bottom accent */
.legacy-post-content blockquote::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 2px;
    width: 60px;
    background: linear-gradient(to right, transparent, #ffd700);
    border-radius: 0 0 6px 0;
}

/* Style for optional citation */
.legacy-post-content blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 0.9em;
    color: #8a7700;  /* Darker gold/yellow for contrast */
    text-align: right;
}

/* Add a subtle inner border */
.legacy-post-content blockquote {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    border-right: 1px solid rgba(255, 215, 0, 0.2);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

/* Tables */
.legacy-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.legacy-post-content th,
.legacy-post-content td {
    padding: 12px;
    border: 1px solid #00787c;
    text-align: left;
}
.legacy-post-content th {
    background-color: #003550;
    color: #fff;
}
.legacy-post-content tr:nth-child(even) {
    background-color: #f2f2f2;
}
.legacy-post-content tr:hover {
    background-color: #d1e7dd;
}

/* Code Blocks */
.legacy-post-content pre {
    background: #f6f8fa;
    border: 1px solid #ddd;
    padding: 18px;
    overflow-x: auto;
    position: relative;
    font-family: Consolas, Monaco, "Courier New", monospace;
    border-radius: 6px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Style for the copy-code button identified by its text "Copy Code" */
.copy-code-btn {
    display: inline-block;
    background-color: #00787c;  /* Teal color */
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    /* If you need extra spacing, adjust margin as necessary */
     margin-top: 10px;
}

/* Hover state */
.copy-code-btn:hover {
    background-color: #005f6b;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Active state */
.copy-code-btn:active {
    transform: translateY(1px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .legacy-post-content {
        padding: 20px;
    }
    .legacy-post-content h1 {
        font-size: 2.2em;
    }
    .legacy-post-content h2 {
        font-size: 1.8em;
        padding: 10px;
    }
    .legacy-post-content h3 {
        font-size: 1.5em;
    }
    .legacy-post-content p,
    .legacy-post-content li {
        font-size: 0.95em;
    }
    /* Adjust button positioning if necessary on smaller screens */
    .legacy-post-content p button {
        top: 8px;
        right: 8px;
        padding: 5px 10px;
        font-size: 12px;
    }
}

.legacy-post-content .button-container {
    display: flex;
    justify-content: start;
    gap: 10px;
}

.legacy-post-content .nav-buttons {
    display: flex;
    justify-content: start;
    align-items: start;
    gap: 10px;
}

.legacy-post-content .button-container a, .legacy-post-content .button-container button {
    background-color: #00787C;
    color: #fff;
    border: none;
    padding: 7px 15px;
    border-radius: 10px;
}

/* Position the existing copy-code button at the top-right corner */
.legacy-post-content .copy-code-btn {
    position: absolute; /* Position the button relative to the <pre> block */
    top: 10px; /* Distance from the top */
    right: 10px; /* Distance from the right */
    background-color: #00787c;  /* Teal color */
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover state for the copy-code button */
.legacy-post-content .copy-code-btn:hover {
    background-color: #005f6b;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Active state for the copy-code button */
.legacy-post-content .copy-code-btn:active {
    transform: translateY(1px);
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    .legacy-post-content .copy-code-btn {
        top: 10px;  /* Keep some space from the top */
        right: 10px; /* Ensure it's still on the right */
        padding: 5px 10px; /* Reduce padding for mobile */
        font-size: 12px; /* Smaller font size on mobile */
    }
}

/* Make the button more visible and well-spaced in smaller screens */
@media (max-width: 480px) {
    .legacy-post-content .copy-code-btn {
        top: 12px; /* Add more space from the top */
        right: 12px; /* Adjust the right position */
        font-size: 11px; /* Reduce the font size further */
        padding: 4px 8px; /* Reduce padding further */
    }
}

.legacy-post-content .solution-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: start;
  gap: 10px;
  margin-top: 20px;
}

.legacy-post-content .solution-links a {
  text-decoration: none;
  color: #00787c; /* Change to your preferred color */
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: #f1f1f1;
    border: 1px solid #003550;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.legacy-post-content .solution-links a:hover {
  color: #fff;
  background-color: #00787c;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.legacy-post-content .solution-links a:active {
  transform: translateY(2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.legacy-post-content .nav-buttons button {
    background-color: #005F6B;
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 20px;
    margin-top: 5px;
}

li:has(a.broken_link) {
    display: none;
}

figure img, p img {
    max-width: 600px;
    width: 80%;
}

.post-5379 {
    display: flex; 
    gap: 20px;
}

.post-5379 .article-container {
    display: flex; 
    flex-direction: column;
}