/* Article Page Component Styles */

.article-workspace {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 2rem 2.5rem;
    box-sizing: border-box;
}

.article-content-main {
    background: #ffffff;
    border: 1px solid #E5E9E2;
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    width: 100%;
    box-sizing: border-box;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1.5px solid #CBD5E1;
}

.article-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #10243E;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.4px;
    flex: 1;
    min-width: 280px;
}

.article-meta-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.article-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #4E6A3B;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
}

.article-meta-text {
    font-size: 0.8125rem;
}

.article-meta-date {
    color: #64748B;
    display: block;
}

.article-meta-author {
    font-weight: 700;
    color: #10243E;
}

.article-description {
    font-size: 1.05rem;
    color: #475569;
    margin: 0 0 1.5rem;
    line-height: 1.55;
}

/* Article Body & RTE Typography */
.article-body {
    line-height: 1.7;
    color: #1E293B;
    font-size: 0.95rem;
}

.article-body section {
    margin-bottom: 2rem;
}

.article-body h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #10243E;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #10243E;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.article-content-main img,
.article-body img,
.rte img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
    margin: 1.5rem auto !important;
}

/* Preserve rich text alignment containers (TinyMCE text-align: center) */
.article-body p:has(img[style*="margin-left: auto"]),
.article-body p[style*="text-align: center"],
.article-body div[style*="text-align: center"],
.article-body figure[style*="text-align: center"],
.rte p[style*="text-align: center"],
.rte div[style*="text-align: center"],
.rte figure[style*="text-align: center"] {
    text-align: center !important;
    display: block !important;
}

.article-body p[style*="text-align: center"] img,
.article-body div[style*="text-align: center"] img,
.article-body figure[style*="text-align: center"] img,
.rte p[style*="text-align: center"] img,
.rte div[style*="text-align: center"] img,
.rte figure[style*="text-align: center"] img {
    display: inline-block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Default link styling inside article content */
.article-body a:not([style*="color"]),
.rte a:not([style*="color"]) {
    color: #33C8D6 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    transition: color 0.15s ease !important;
}

.article-body a,
.rte a {
    color: #33C8D6;
    text-decoration: underline;
}

.article-body a:hover,
.rte a:hover {
    color: #1A9FB0 !important;
    text-decoration: underline !important;
}

/* Article Feedback Box */
.article-feedback-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-feedback-card {
    background: #ffffff;
    border: 1px solid #E5E9E2;
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    text-align: center;
}

.article-feedback-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #10243E;
    margin-bottom: 0.25rem;
}

.article-feedback-subtitle {
    font-size: 0.775rem;
    color: #64748B;
    margin: 0 0 0.85rem;
}

.article-feedback-group {
    display: flex;
    gap: 0.75rem;
}

.article-feedback-btn-yes {
    flex: 1;
    background: #EFF6E9;
    border: 1px solid #D6E4CC;
    color: #4E6A3B;
    font-weight: 700;
    font-size: 0.825rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.article-feedback-btn-yes:hover {
    background: #DCEAD6;
}

.article-feedback-btn-no {
    flex: 1;
    background: #ffffff;
    border: 1px solid #CBD5E1;
    color: #475569;
    font-weight: 700;
    font-size: 0.825rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.article-feedback-btn-no:hover {
    background: #F1F5F9;
}

.article-feedback-thanks {
    display: none;
    font-size: 0.825rem;
    font-weight: 700;
    color: #3B5A27;
    margin-top: 0.65rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .article-workspace {
        padding: 1.25rem 1.5rem !important;
    }
    .article-content-main {
        padding: 1.5rem !important;
    }
}
