/* ===================================================
   PROGMIS – Articles styles
   Font: Lato (inherited from body)
   Primary: #2a1fbc | matches site default-color.css
   =================================================== */

/* ── Breadcrumb ─────────────────────────────────── */
.articles-breadcrumb {
    padding: 14px 0;
    background: #fff;
    border-bottom: 1px solid #e8eaf0;
    color: #485974;
}
.articles-breadcrumb {
}
.articles-breadcrumb a {
    color: #2a1fbc;
    text-decoration: none;
}
.articles-breadcrumb a:hover {
    text-decoration: underline;
    color: #2a1fbc;
}
.articles-breadcrumb .sep {
    margin: 0 6px;
    color: #c4c8d8;
}

/* ── Articles list page (FAQ-style) ───────────────── */
.articles-page {
    background: #f7f9fc;
    padding: 150px 0 90px;
    min-height: 70vh;
}
.articles-heading {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}
.articles-heading .articles-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #2a1fbc;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.articles-heading h1 {
    margin-bottom: 14px;
    color: #17213b;
    font-weight: 800;
    line-height: 1.2;
}
.articles-heading p {
    margin: 0;
    color: #5f6b7a;
    line-height: 1.7;
}
@media (max-width: 767.98px) {
    .articles-page { padding: 115px 0 60px; }
    .articles-heading { margin-bottom: 32px; }
    .articles-heading p { }
}

/* ── Articles grid (CSS Grid — no Bootstrap conflicts) ── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 991.98px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 575.98px) {
    .articles-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Article card ─────────────────────────────────── */
.article-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e3e8f2;
    box-shadow: 0 12px 38px rgba(31, 45, 78, .07);
    transition: box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    box-shadow: 0 18px 46px rgba(31, 45, 78, .12);
}
.article-card-img-link {
    display: block;
    overflow: hidden;
    background: #eef2f9;
}
.article-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.article-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-badge {
    display: inline-block;
    background: #eeecfb;
    color: #2a1fbc;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    margin-bottom: 14px;
    align-self: flex-start;
}
.article-card-title {
    font-weight: 800;
    color: #17213b;
    line-height: 1.35;
    margin: 0 0 12px;
}
.article-card-title a {
    color: inherit;
    text-decoration: none;
}
.article-card-title a:hover {
    color: #2a1fbc;
    text-decoration: none;
}
.article-card-excerpt {
    color: #536078;
    line-height: 1.65;
    margin-bottom: 16px;
    flex: 1;
}
.article-card-meta {
    color: #8a94a6;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-card-meta-sep { color: #c4c8d8; margin: 0 4px; }
.article-card-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2a1fbc;
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start;
}
.article-card-read i { }
.article-card-read:hover {
    color: #1a148a;
    text-decoration: none;
}
.article-card-read:hover i { }

/* ── Article show page wrapper ───────────────────── */
.article-show-page {
    padding-top: 75px;
}
@media (max-width: 991px) {
    .article-show-page { padding-top: 65px; }
}
@media (max-width: 767px) {
    .article-show-page { padding-top: 60px; }
}

/* ── Article show: layout ────────────────────────── */
.article-page {
    padding: 24px 0 64px;
    background: #f6f7fb;
    min-height: 70vh;
}
.article-back-link {
    display: inline-block;
    color: #2a1fbc;
    font-weight: 700;
    margin-bottom: 24px;
    text-decoration: none;
}
.article-back-link:hover {
    color: #1a148a;
    text-decoration: none;
}
.article-hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 28px;
}
.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.article-meta-date,
.article-meta-author {
    color: #485974;
}
.article-show-title {
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.3;
    margin-bottom: 20px;
}
.article-lead {
    color: #485974;
    line-height: 1.75;
    font-style: italic;
    border-left: 4px solid #2a1fbc;
    padding-left: 20px;
    margin-bottom: 32px;
}
.article-body {
    color: #2d3446;
    line-height: 1.8;
}
.article-body h2 {
    font-weight: 700;
    color: #1a1a2e;
    margin: 2.4rem 0 1.1rem;
    padding-top: 0.4rem;
}
.article-body h3 {
    font-weight: 700;
    color: #2a1fbc;
    margin: 1.7rem 0 0.85rem;
}
.article-body p { margin-bottom: 1.2rem; line-height: 1.8; }
.article-body ul,
.article-body ol { margin-bottom: 1.2rem; padding-left: 1.6rem; line-height: 1.8; }
.article-body li { margin-bottom: 0.55rem; }
.article-body strong { color: #1a1a2e; }
.article-body code {
    background: #eeecfb;
    color: #2a1fbc;
    padding: 2px 6px;
    border-radius: 4px;
}
/* ── Internal links SEO section ──────────────────── */
.article-internal-links {
    margin: 2rem 0;
    background: #f6f7fb;
    border-left: 4px solid #2a1fbc;
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
}
.article-internal-links-title {
    font-weight: 700;
    color: #2a1fbc;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-internal-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article-internal-links-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e8eaf0;
}
.article-internal-links-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.article-internal-link {
    font-weight: 700;
    color: #2a1fbc;
    text-decoration: none;
}
.article-internal-link:hover {
    color: #1a148a;
    text-decoration: underline;
}
.article-internal-link-desc {
    color: #485974;
    margin: 3px 0 0;
    line-height: 1.5;
}

/* ── Inline platform CTA ─────────────────────────── */
.article-cta-inline {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #eeecfb;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 1.5rem 0;
}
.article-cta-inline-icon {
    flex-shrink: 0;
    line-height: 1;
}
.article-cta-inline strong {
    display: block;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.article-cta-inline p {
    color: #485974;
    margin: 0;
    line-height: 1.6;
}
.article-cta-inline a {
    color: #2a1fbc;
    font-weight: 700;
    text-decoration: underline;
}
.article-cta-inline a:hover {
    color: #1a148a;
}

/* ── Share box ────────────────────────────────────── */
.article-share-box {
    margin-top: 36px;
    padding: 18px 22px;
    background: #eeecfb;
    border-radius: 10px;
}

/* ── Sidebar ─────────────────────────────────────── */
.sidebar-sticky {
    position: sticky;
    top: 24px;
}
.sidebar-widget {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(42, 31, 188, 0.07);
    padding: 22px;
    margin-bottom: 22px;
}
.sidebar-widget-title {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-widget-title i { color: #2a1fbc; }

/* CTA widget */
.sidebar-cta-widget {
    background: linear-gradient(135deg, #2a1fbc 0%, #488fed 100%);
    border-radius: 10px;
    padding: 26px 22px;
    color: #fff;
    text-align: center;
    margin-bottom: 22px;
}
.sidebar-cta-widget .cta-icon { margin-bottom: 12px; }
.sidebar-cta-widget h3 {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #ffffff !important;
}
.sidebar-cta-widget p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.92) !important;
    line-height: 1.6;
    margin-bottom: 18px;
}
.sidebar-cta-widget a {
    display: inline-block;
    background: #ffffff;
    color: #2a1fbc !important;
    padding: 11px 26px;
    border-radius: 50px;
    font-weight: 700;
}
.sidebar-cta-widget a:hover {
    background: #eeecfb;
    color: #1a148a !important;
    text-decoration: none;
}

/* TOC */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc-list li {
    border-bottom: 1px solid #f0f0f8;
}
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
    display: block;
    padding: 10px 0;
    color: #2d3446;
    text-decoration: none;
    transition: color 0.15s;
    line-height: 1.5;
}
.toc-list a:hover { color: #2a1fbc; text-decoration: none; }
.toc-list .toc-h3 a { padding-left: 14px; color: #485974; }

/* Related articles */
.related-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f8;
}
.related-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-item img {
    width: 78px;
    height: 66px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.related-item-body a {
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.4;
    display: block;
}
.related-item-body a:hover { color: #2a1fbc; text-decoration: none; }
.related-item-date { color: #8a94a6; margin-top: 5px; }

/* ── Footer CTA section ──────────────────────────── */
.articles-footer-cta {
    background: linear-gradient(135deg, #2a1fbc 0%, #488fed 100%);
    padding: 60px 0;
    text-align: center;
}
.articles-footer-cta h2 {
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.articles-footer-cta p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 500px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

/* ── Home page articles section ──────────────────── */
.home-articles-section {
    padding: 80px 0;
    background: #f6f7fb;
}
.home-articles-subtitle {
    color: #485974;
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.6;
}
.home-articles-all-link {
    font-weight: 700;
    color: #2a1fbc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.home-articles-all-link:hover {
    color: #1a148a;
    text-decoration: underline;
}
.home-articles-all-link i { }
.home-articles-all-link:hover i { }
.home-article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(42, 31, 188, 0.08);
    transition: box-shadow 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.home-article-card:hover {
    box-shadow: 0 8px 28px rgba(42, 31, 188, 0.15);
}
.home-article-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}
.home-article-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.home-article-card-title {
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    flex: 1;
    margin-bottom: 12px;
}
.home-article-card-title:hover {
    color: #2a1fbc;
    text-decoration: none;
}
.home-article-card-meta {
    color: #8a94a6;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 767px) {
    .sidebar-sticky { position: static; }
    .articles-hero { padding: 48px 0 40px; }
    .article-page { padding: 28px 0 40px; }
}
