/* =============================================
   Refonte Article Page CSS
   ============================================= */

/* Hero Section */
.refonte-article-hero {
    background-color: var(--dark-green);
    padding: 160px 40px 100px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.refonte-article-hero::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(216, 242, 131, 0.1) 0%, rgba(216, 242, 131, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.article-hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-title.white-text {
    font-family: var(--font-primary);
    font-size: 56px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.1;
    margin: 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.author-name {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--white);
    font-weight: 400;
}

.author-name strong {
    font-weight: 600;
}

.publish-date {
    font-family: var(--font-primary);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}


/* Main Article Section */
.refonte-article-main {
    background-color: var(--white);
    padding: 80px 40px;
    display: flex;
    justify-content: center;
}

.article-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* Sidebar (Summary) */
.article-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-sticky {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 12px;
    border-bottom: 2px solid #F0F2F1;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-item {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.4;
    color: #475467;
}

.summary-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    padding: 4px 0;
}

.summary-item a:hover {
    color: var(--dark-green);
    font-weight: 500;
}


/* Article Content Area */
.article-body-content {
    flex-grow: 1;
    max-width: 800px;
}

/* Overriding and importing rules from legacy article.css for the parsed HTML */
.articleContent {
    width: 100%;
    text-align: left;
    font-family: var(--font-primary);
}

.articleContent h2 {
    color: var(--dark-green);
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 60px;
    margin-bottom: 24px;
}

.articleContent h3 {
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 40px;
    margin-bottom: 16px;
}

.articleContent h4 {
    color: #1A1A1A;
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 500;
    margin-top: 32px;
    margin-bottom: 16px;
}

.articleContent p,
.articleContent li {
    color: #475467;
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.articleContent ul,
.articleContent ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.articleContent li {
    margin-bottom: 12px;
}

.articleContent img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
}

.articleContent a {
    color: var(--dark-green);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

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

/* Sticky notes */
.nb {
    margin: 48px 0;
    background-color: var(--accent-color);
    padding: 32px;
    border-radius: 16px;
    position: relative;
    border-left: 4px solid var(--dark-green);
}

.nb p {
    margin: 0;
    color: var(--dark-green);
}

.postIt {
    position: absolute;
    width: 80px;
    top: -40px;
    left: -20px;
}


/* Related Articles Section */
.refonte-related-articles {
    background-color: #F4F7F6;
    padding: 100px 40px;
    display: flex;
    justify-content: center;
}

.related-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 40px;
    font-weight: 500;
    color: var(--dark-green);
    margin: 0;
}


/* Responsive */
@media (max-width: 1024px) {
    .article-container {
        flex-direction: column;
        gap: 48px;
    }

    .article-sidebar {
        width: 100%;
    }

    .sidebar-sticky {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .refonte-article-hero {
        padding: 140px 24px 80px;
    }

    .page-title.white-text {
        font-size: 40px;
    }

    .refonte-article-main,
    .refonte-related-articles {
        padding: 60px 24px;
    }

    .articleContent h2 {
        font-size: 28px;
    }

    .articleContent p,
    .articleContent li {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .refonte-article-hero {
        padding: 120px 16px 60px;
    }

    .page-title.white-text {
        font-size: 32px;
    }

    .refonte-article-main,
    .refonte-related-articles {
        padding: 40px 16px;
    }

    .articleContent h2 {
        font-size: 24px;
    }

    .section-title {
        font-size: 32px;
    }
}