/* ========================================================
   Articles — Public Pages
   ======================================================== */

/* ── Container ─────────────────────────────────────────── */
.articles-page {
    min-height: 60vh;
}

.articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Breadcrumb ────────────────────────────────────────── */
.articles-breadcrumb {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
}

.articles-breadcrumb ol {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6b7280;
}

.articles-breadcrumb ol li + li::before {
    content: '›';
    margin-right: 8px;
    color: #9ca3af;
}

.articles-breadcrumb ol a {
    color: #6b7280;
    text-decoration: none;
}

.articles-breadcrumb ol a:hover { color: #111; }
.articles-breadcrumb ol li:last-child { color: #111; font-weight: 500; }

/* ── Hero ──────────────────────────────────────────────── */
.articles-hero {
    background:
        linear-gradient(rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.60)),
        url('/images/Article Background/ArticlesBG.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 72px 0 60px;
    text-align: center;
}

.articles-hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin: 0 0 16px;
}

.articles-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.15;
}

.articles-hero-desc {
    font-size: 17px;
    color: #d1d5db;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Category filter ───────────────────────────────────── */
.articles-filter {
    padding: 28px 0;
    border-bottom: 1px solid #e9ecef;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.articles-filter-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.articles-filter-inner::-webkit-scrollbar { display: none; }

.articles-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border: 1.5px solid #e2e8f0;
    color: #4b5563;
    background: #fff;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.articles-filter-pill:hover {
    border-color: #111;
    color: #111;
}

.articles-filter-pill.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* ── Articles grid ─────────────────────────────────────── */
.articles-section {
    padding: 52px 0 72px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 900px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .articles-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Article card ──────────────────────────────────────── */
.article-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.article-card-cover {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.article-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-cover img {
    transform: scale(1.03);
}

.article-card-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
}

.article-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card-category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 10px;
}

.article-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px;
    color: #111;
}

.article-card-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.article-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-card-readmore {
    font-weight: 600;
    color: #111;
}

/* ── Empty state ───────────────────────────────────────── */
.articles-empty {
    text-align: center;
    padding: 80px 24px;
    color: #9ca3af;
}

.articles-empty svg { margin: 0 auto 16px; }
.articles-empty p { font-size: 16px; }

/* ── Pagination ────────────────────────────────────────── */
.articles-pagination {
    margin-top: 52px;
    display: flex;
    justify-content: center;
}

/* ── Single Article Layout ─────────────────────────────── */
.article-page {
    min-height: 60vh;
}

.article-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 52px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 52px;
    align-items: start;
}

@media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Article main ──────────────────────────────────────── */
.article-main {}

.article-header {
    margin-bottom: 32px;
}

.article-category-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    text-decoration: none;
    margin-bottom: 14px;
}

.article-category-link:hover { color: #111; }

.article-title {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 20px;
    color: #111;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6b7280;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-cover {
    margin-bottom: 36px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 480px;
    object-fit: cover;
}

/* ── Article prose content ─────────────────────────────── */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.article-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2em 0 0.75em;
    color: #111;
    padding-bottom: 8px;
    border-bottom: 2px solid #f3f4f6;
}

.article-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.75em 0 0.5em;
    color: #111;
}

.article-content p { margin: 0 0 1.25em; }

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin: 0 0 1.25em;
}

.article-content ul { list-style-type: disc; }
.article-content ol { list-style-type: decimal; }

/* Quill 2.x uses <ol> for both list types, differentiated by data-list attribute */
.article-content li[data-list="bullet"] { list-style-type: disc; }
.article-content li[data-list="ordered"] { list-style-type: decimal; }

.article-content li { margin-bottom: 6px; }

.article-content a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover { opacity: 0.7; }

.article-content blockquote {
    border-left: 3px solid #111;
    padding: 12px 20px;
    margin: 1.5em 0;
    background: #f8f9fa;
    color: #4b5563;
    border-radius: 0 6px 6px 0;
    font-style: italic;
}

.article-content strong { font-weight: 600; color: #111; }

/* ── Share section ─────────────────────────────────────── */
.article-share {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.article-share-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.article-share-wa {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 8px;
    background: #25d366;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}

.article-share-wa:hover { opacity: 0.88; }

/* ── Article sidebar ───────────────────────────────────── */
.article-sidebar {
    position: sticky;
    top: 80px;
}

.article-sidebar-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.article-sidebar-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.article-related-list {
    display: flex;
    flex-direction: column;
}

.article-related-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.12s;
}

.article-related-item:last-child { border-bottom: none; }
.article-related-item:hover { background: #f9fafb; }

.article-related-thumb {
    width: 60px;
    height: 42px;
    border-radius: 5px;
    object-fit: cover;
    background: #f3f4f6;
    flex-shrink: 0;
}

.article-related-thumb-placeholder {
    width: 60px;
    height: 42px;
    border-radius: 5px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #d1d5db;
}

.article-related-text {}

.article-related-name {
    font-size: 13px;
    font-weight: 500;
    color: #111;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-related-date {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* ── Linked product CTA ────────────────────────────────── */
.article-product-cta {
    margin-top: 32px;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #111;
    border-radius: 8px;
    background: #f9fafb;
    overflow: hidden;
}

.article-product-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
}

.article-product-cta-info {
    flex: 1;
    min-width: 0;
}

.article-product-cta-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 6px;
}

.article-product-cta-name {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
    line-height: 1.3;
}

.article-product-cta-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-product-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}

.article-product-cta-btn:hover {
    background: #374151;
}

@media (max-width: 600px) {
    .article-product-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .article-product-cta-btn {
        width: 100%;
        justify-content: center;
    }
}
