/* =============================================================
   Guide Hub CSS — /guides/ archive page only
   ============================================================= */

.guide-hub { max-width: 1440px; margin: 0 auto; }

/* --- Hero --- */
.guide-hub__hero {
    background: linear-gradient(135deg, #7C2D3B 0%, #5A1F2C 100%);
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    color: #fff;
}
.guide-hub__hero-inner { max-width: 700px; margin: 0 auto; }
.guide-hub__title {
    font-family: 'Lexend', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    margin: 0 0 1rem;
}
.guide-hub__subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.5;
    margin: 0 0 1.5rem;
}
.guide-hub__count {
    font-size: 0.9375rem;
    opacity: 0.7;
}
.guide-hub__count strong {
    color: #D4A853;
    font-size: 1.125rem;
}

/* --- Filter Tabs --- */
.guide-hub__filters {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #E8E0D8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.guide-hub__filters-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.guide-hub__filters-inner::-webkit-scrollbar { display: none; }
.guide-hub__filter {
    padding: 0.875rem 1.25rem;
    border: none;
    background: none;
    font-family: 'Lexend', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #777;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.guide-hub__filter:hover { color: #7C2D3B; }
.guide-hub__filter.active {
    color: #7C2D3B;
    border-bottom-color: #7C2D3B;
}

/* --- Content Area --- */
.guide-hub__content {
    padding: 2rem 1.5rem 4rem;
}

/* --- Category Section --- */
.guide-hub__category {
    margin-bottom: 3rem;
}
.guide-hub__category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #E8E0D8;
}
.guide-hub__category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F9F2F3;
    border-radius: 10px;
    color: #7C2D3B;
    flex-shrink: 0;
}
.guide-hub__category-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
}
.guide-hub__category-count {
    font-size: 0.8125rem;
    color: #999;
    margin-left: auto;
}
.guide-hub__category-desc {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.5;
    margin: -0.75rem 0 1.5rem;
}

/* --- Topic Hero Variant --- */
.guide-hub__hero--topic { padding-bottom: 2rem; }
.guide-hub__back { margin-bottom: 1rem; }
.guide-hub__back a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}
.guide-hub__back a:hover { color: #fff; }
.guide-hub__topic-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 18px;
    margin: 0 auto 1.25rem;
    color: #D4A853;
}

/* --- Guide Grid --- */
.guide-hub__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* --- Guide Card --- */
.guide-hub__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E8E0D8;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}
.guide-hub__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.guide-hub__card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #FAF7F2;
}
.guide-hub__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.guide-hub__card:hover .guide-hub__card-img img {
    transform: scale(1.05);
}
.guide-hub__card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.guide-hub__card-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1A1A1A;
    margin: 0 0 0.5rem;
}
.guide-hub__card-excerpt {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 0.75rem;
    flex: 1;
}
.guide-hub__card-meta {
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
}

/* --- CTA --- */
.guide-hub__cta {
    background: linear-gradient(135deg, #7C2D3B 0%, #5A1F2C 100%);
    padding: 3rem 1.5rem;
    text-align: center;
    color: #fff;
}
.guide-hub__cta-inner { max-width: 600px; margin: 0 auto; }
.guide-hub__cta h2 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.75rem;
    margin: 0 0 0.75rem;
    color: #fff;
}
.guide-hub__cta p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0 0 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .guide-hub__grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 768px) {
    .guide-hub__hero { padding: 3rem 1rem 2rem; }
    .guide-hub__title { font-size: 2rem; }
    .guide-hub__subtitle { font-size: 1.0625rem; }
    .guide-hub__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .guide-hub__card-title { font-size: 0.9375rem; }
    .guide-hub__category-title { font-size: 1.25rem; }
}
@media (max-width: 480px) {
    .guide-hub__grid { grid-template-columns: 1fr; }
    .guide-hub__hero { padding: 2rem 1rem 1.5rem; }
    .guide-hub__title { font-size: 1.75rem; }
    .guide-hub__filter { font-size: 0.75rem; padding: 0.75rem 1rem; }
}
