/* ============================================================
   ARTICLES.CSS — SeeBOSTER Blog Listing Page
   ============================================================ */

.articles-page {
    padding-top: 68px;
    background: #0a0a0a;
    min-height: 100vh;
}

/* ── Page Header ───────────────────────────────────────────── */
.articles-header {
    background: #000;
    padding: 72px 0 56px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.articles-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.articles-header p {
    font-size: 1.1rem;
    color: #888;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Articles Layout ───────────────────────────────────────── */
.articles-section {
    padding: 64px 0;
}

.articles-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.articles-main { min-width: 0; }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* ── Article Card ──────────────────────────────────────────── */
.article-card {
    background: #111;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    border-color: rgba(56, 129, 47, 0.3);
}

.article-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #1a1a1a;
}

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

.article-card:hover .article-card-image img {
    transform: scale(1.04);
}

.article-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #1a1a1a, #222);
}

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

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.article-card-date {
    font-size: 0.8rem;
    color: #555;
}

.article-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-excerpt {
    font-size: 0.88rem;
    color: #888;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #38812f;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.article-card-link:hover {
    color: #4caf50;
    gap: 10px;
}

/* Empty state */
.articles-empty {
    text-align: center;
    padding: 80px 20px;
    color: #555;
}

.articles-empty p {
    font-size: 1rem;
    margin-top: 16px;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.articles-sidebar {
    position: sticky;
    top: 88px;
}

.sidebar-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

/* Tree Structure */
.sidebar-tree {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-tree-group {
    position: relative;
    padding-left: 14px;
    border-left: 2px solid #d4ebd0;
}

.sidebar-tree-title {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #38812f;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

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

.sidebar-tree-list li {
    position: relative;
    margin-bottom: 1px;
}

.sidebar-tree-list li::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    width: 10px;
    height: 1px;
    background: #d4ebd0;
}

.sidebar-tree-list a {
    display: block;
    padding: 7px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #444;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-tree-list a:hover {
    background: #f0f8ef;
    color: #2e7d32;
}

.sidebar-cta {
    background: #f5f8f5;
    border-color: #d4ebd0;
    text-align: center;
}

.sidebar-cta h3 {
    border-bottom: none;
    padding-bottom: 0;
    color: #1a1a1a;
}

.sidebar-cta p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 14px;
    line-height: 1.5;
}

.sidebar-wa-btn {
    display: block;
    background: #25d366;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-wa-btn:hover {
    background: #1fb855;
    transform: translateY(-2px);
}

/* ── Pagination ────────────────────────────────────────────── */
.articles-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.articles-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.articles-pagination .page-link:hover,
.articles-pagination .page-link.active {
    background: #38812f;
    border-color: #38812f;
    color: #fff;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .articles-layout { grid-template-columns: 1fr 260px; gap: 28px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .articles-header { padding: 56px 0 40px; }
    .articles-header h1 { font-size: 2rem; }
    .articles-section { padding: 48px 0; }
    .articles-layout { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; gap: 20px; }
    .articles-sidebar { position: static; }
}

@media (max-width: 480px) {
    .articles-header h1 { font-size: 1.7rem; }
    .article-card-body { padding: 18px; }
}
