/* ========================================================================= */
/* --- ARTICLE PAGE STYLES --- */
/* ========================================================================= */

/* Fix for large images in article description */
.article-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Ensure tables and other elements also don't overflow */
.article-content table,
.article-content iframe,
.article-content video {
    max-width: 100% !important;
}

/* Custom styles for Summary */
.article-summary {
    background-color: #e8f5e9; /* Light Green */
    border-left: 5px solid #28a745; /* Main Green */
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.article-summary h5 {
    color: #28a745; /* Main Green */
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Remove margin from paragraphs inside the summary */
.summary-content p:last-child {
    margin-bottom: 0;
}

/* Custom styles for Table of Contents */
.article-toc {
    background-color: #fdfdfe;
    border: 1px solid #e1e4e8;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.article-toc h5 {
    font-weight: bold;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.article-toc ul {
    padding-left: 0;
    margin-bottom: 0;
}

.article-toc li {
    margin-bottom: 0.5rem;
    list-style: none;
}

.article-toc li a {
    color: #2c662d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.article-toc li a:hover {
    color: #1e4620;
    background-color: #e8f5e9;
    text-decoration: none;
    transform: translateX(5px);
}

/* Indent nested items if any (h3) */
.article-toc li[style*="margin-left"] {
    position: relative;
}

.article-toc li[style*="margin-left"]::before {
    content: "↳";
    position: absolute;
    left: -15px;
    top: 8px;
    color: #ccc;
    font-size: 1.2em;
}
