/* ---- moved from archive-guide.php (inline block) ---- */
/* ===== Guides Archive ===== */
.guides-archive { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1600px) { .guides-archive { max-width: 1320px; } }

/* Header */
.guides-header { padding: 28px 0 20px; border-bottom: 1px solid var(--border-color); margin-bottom: 28px; }
.guides-header h1 { margin: 0 0 4px; color: var(--text-primary); }
.guides-header p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* Filter Tabs */
.guides-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.guides-filter-btn {
    padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-secondary);
    cursor: pointer; transition: all 0.2s; text-decoration: none; white-space: nowrap;
}
.guides-filter-btn:hover { border-color: var(--primary-color, #2550f0); color: var(--primary-color, #2550f0); }
.guides-filter-btn.active {
    background: var(--primary-color, #2550f0); color: #fff; border-color: var(--primary-color, #2550f0);
}

/* Category Section */
.guides-cat-section { margin-bottom: 48px; }
.guides-cat-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color);
}
.guides-cat-header h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.guides-cat-more {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--primary-color, #2550f0); text-decoration: none; display: flex; align-items: center; gap: 4px;
}
.guides-cat-more:hover { opacity: 0.8; }

/* Cards Grid */
.guides-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.guides-grid-all {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px;
}

/* Guide Card */
.guide-card {
    display: flex; flex-direction: column; background: var(--card-bg);
    border: 1px solid var(--border-color); border-radius: 14px; overflow: hidden;
    text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.guide-card:hover { border-color: rgba(37, 80, 240, 0.15); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06); }
.guide-card:hover .guide-card-img img { transform: scale(1.03); }

.guide-card-img { position: relative; width: 100%; height: 180px; overflow: hidden; }
.guide-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.guide-card-img-ph {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}

.guide-card-body { display: flex; flex-direction: column; padding: 18px; flex: 1; }
.guide-card-cat {
    display: inline-block; margin-bottom: 8px; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary-color, #2550f0);
    background: rgba(37, 80, 240, 0.06); padding: 3px 8px; border-radius: 5px;
    align-self: flex-start;
}
body.theme-dark .guide-card-cat { background: rgba(37, 80, 240, 0.15); }

.guide-card-title {
    font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--text-primary);
    margin: 0 0 8px; letter-spacing: -0.01em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.guide-card-excerpt {
    font-size: 13px; line-height: 1.6; color: var(--text-muted); margin: 0 0 14px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.guide-card-meta {
    display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-muted); font-weight: 500;
}
.guide-card-meta .dot { opacity: 0.4; }

/* Empty State */
.guides-empty {
    text-align: center; padding: 80px 20px; color: var(--text-muted);
}
.guides-empty svg { margin-bottom: 16px; opacity: 0.3; }
.guides-empty h3 { margin: 0 0 8px; font-size: 18px; color: var(--text-primary); }
.guides-empty p { margin: 0; font-size: 14px; }

/* Responsive */
@media (max-width: 1024px) {
    .guides-grid, .guides-grid-all { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .guides-grid, .guides-grid-all { grid-template-columns: 1fr; }
    .guide-card-img { height: 160px; }
}
