/* ====================================================================== */
/* Article Styling - Component Club Theme */

.article-heading h1 {
    font-size: var(--article-title);
    font-family: var(--title-font);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5em;
}

.article-author {
    font-size: var(--text-normal);
    line-height: 1.5em;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
}

.article-container {
    display: flex;
    flex-direction: row;
    column-gap: var(--default-col-gap);
    margin-bottom: var(--standard-pad);
}

.article {
    font-family: var(--text-font);
    color: var(--text-color);
}

.article p,
.article strong,
.article em {
    font-size: var(--article-normal);
    font-weight: 400;
    line-height: 1.9em;
    color: var(--text-color);
    margin-bottom: 1em;
}

.article a {
    font-size: inherit;
    font-weight: inherit;
    color: var(--primary-color);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.article a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.article h1 {
    font-size: var(--article-title);
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.article h2 {
    margin-top: 1em;
    font-size: var(--article-heading-2);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.article h3 {
    font-size: var(--article-heading-3);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.article h4 {
    font-size: var(--article-heading-4);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.article ul,
.article ol {
    padding-left: 2em;
    margin-bottom: 1em;
}

.article li {
    font-size: var(--article-normal);
    font-weight: 400;
    line-height: 1.9em;
    color: var(--text-color);
}

.article li::marker {
    color: var(--primary-color);
}

.article img {
    width: 100%;
    border-radius: var(--standard-radius);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 1em;
}

.author-container {
    padding: var(--standard-pad);
    border: 1px solid var(--primary-color);
    border-radius: var(--standard-radius);
    background: #fff;
    margin-top: var(--standard-pad);
}

.author-box {
    display: grid;
    grid-template-columns: 15% auto;
    column-gap: var(--default-col-gap);
    align-items: center;
}

.author-name {
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}


/* Container for each related article */
.related-news-entries {
    display: grid;
    grid-template-columns: 32% 32% 32%;
    justify-content: space-between;
}

/* ===== Related News Entry ===== */
.related-entry {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: var(--text-color);
    background: #ffffff;
    border-radius: var(--standard-radius);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Image */
.related-entry-img {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
}

/* Title */
.related-entry h5 {
    font-size: var(--text-normal);
    font-weight: 600;
    margin: 0.75rem 0.75rem 1rem 0.75rem;
    line-height: 1.3em;
    color: var(--primary-color);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Container holding multiple related entries */
.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--default-col-gap);
    margin-top: var(--standard-pad);
}

