/* Blog Article Layout */
.blog-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.blog-main {
    flex: 1;
    min-width: 0;
    /* Prevent flex item from overflowing */
}

.blog-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Responsive Layout */
@media (max-width: 900px) {
    .blog-wrapper {
        flex-direction: column;
    }

    .blog-sidebar {
        width: 100%;
    }
}

/* Table of Contents */
.toc-box {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.toc-title {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    color: var(--text-color);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 8px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
}

.toc-list li:last-child {
    border-bottom: none;
}

.toc-list a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95em;
    display: block;
}

.toc-list a:hover {
    color: var(--primary-color);
}

/* Article Styling Enhancements */
.blog-post-detail {
    font-size: 1.05em;
    line-height: 1.9;
}

.blog-post-detail h3 {
    margin-top: 50px;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
    border-bottom: none;
    background: linear-gradient(to right, #f9f9f9, transparent);
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.widget-title {
    font-size: 1.2em;
    border-bottom: 2px solid var(--theme-tan-bg);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--theme-green-dark);
    font-family: var(--font-family-heading);
}

/* Profile Widget */
.profile-widget {
    text-align: center;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--theme-tan-bg);
}

.profile-name {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.profile-role {
    font-size: 0.8em;
    color: #777;
    display: block;
    margin-bottom: 15px;
}

.profile-text {
    font-size: 0.9em;
    text-align: left;
    line-height: 1.6;
}

/* Event CTA Widget */
.event-cta-widget {
    background-color: var(--theme-tan-bg);
    border: none;
    text-align: center;
}

.event-cta-date {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin: 10px 0;
    font-family: var(--font-family-heading);
}

.event-cta-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s;
    width: 80%;
}

.event-cta-btn:hover {
    background-color: #b30030;
    color: white;
}

/* Article Bottom CTA */
.article-bottom-cta {
    background: linear-gradient(135deg, var(--theme-green-dark), var(--theme-green-darker));
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 77, 64, 0.2);
}

.article-bottom-cta h3 {
    color: white;
    border-bottom: none;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.article-bottom-cta p {
    font-size: 1.1em;
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-button-large {
    display: inline-block;
    background-color: #fff;
    color: var(--theme-green-dark);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
}

/* Share Buttons */
.share-section {
    margin: 40px 0;
    text-align: center;
}

.share-title {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
    display: block;
}

.share-buttons-list {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    transition: opacity 0.3s;
}

.share-btn:hover {
    opacity: 0.8;
    color: white;
}

.share-x {
    background-color: #000;
}

.share-fb {
    background-color: #1877f2;
}

.share-line {
    background-color: #00c300;
}

.share-copy {
    background-color: #777;
}