/* =============================================
   Resource Center - Redesigned for Scale
   Topic filtering, content type tags, hub navigation
   ============================================= */

/* Hero */
.rc-hero {
    background: linear-gradient(160deg, #f0f4fb 0%, #e8eef8 100%);
    padding: calc(var(--il-nav-total-height) + 3rem) 2.5rem 2rem;
}
.rc-hero__inner {
    max-width: 72rem; margin: 0 auto; text-align: center;
}
.rc-hero h1 {
    font-size: 2rem; font-weight: 700; color: #121F31; margin-bottom: 0.5rem;
}
.rc-hero__sub {
    font-size: 1.0625rem; color: #475569; max-width: 600px; margin: 0 auto 1.5rem;
}

/* Search */
.rc-search {
    max-width: 480px; margin: 0 auto 1.5rem; position: relative;
}
.rc-search input {
    width: 100%; padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.9375rem;
    background: #fff;
}
.rc-search input:focus { outline: none; border-color: #1547BC; box-shadow: 0 0 0 3px rgba(21,71,188,0.1); }
.rc-search__icon {
    position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%);
    color: #94a3b8; pointer-events: none;
}

/* Topic Filters */
.rc-filters {
    display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.rc-filter {
    padding: 0.5rem 1rem; border-radius: 20px; border: 1px solid #d1d5db;
    font-size: 0.8125rem; font-weight: 500; color: #475569;
    background: #fff; cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.rc-filter:hover { border-color: #1547BC; color: #1547BC; }
.rc-filter--active { background: #1547BC; color: #fff; border-color: #1547BC; }

/* Content Type Pills */
.rc-types {
    display: flex; gap: 0.375rem; justify-content: center; flex-wrap: wrap;
    margin-bottom: 2rem;
}
.rc-type {
    padding: 0.25rem 0.75rem; border-radius: 12px;
    font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: #64748b; background: #f1f5f9;
    cursor: pointer; transition: all 0.2s; border: none;
}
.rc-type:hover { background: #e2e8f0; color: #334155; }
.rc-type--active { background: #121F31; color: #fff; }

/* Start Here Paths */
.rc-paths {
    max-width: 72rem; margin: 0 auto; padding: 1.5rem 2.5rem 2.5rem;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.rc-path {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 1.25rem; text-decoration: none; color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.rc-path:hover { border-color: #1547BC; box-shadow: 0 4px 16px rgba(21,71,188,0.08); }
.rc-path__icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.75rem; font-size: 1.125rem;
}
.rc-path__icon--income { background: #EFF6FF; color: #1547BC; }
.rc-path__icon--tax { background: #FFF7ED; color: #D97706; }
.rc-path__icon--ss { background: #F0FDF4; color: #059669; }
.rc-path__icon--compare { background: #FEF2F2; color: #DC2626; }
.rc-path h3 { font-size: 0.875rem; font-weight: 700; color: #121F31; margin-bottom: 0.25rem; }
.rc-path p { font-size: 0.75rem; color: #64748b; line-height: 1.4; }

/* Article Grid */
.rc-grid-section {
    max-width: 72rem; margin: 0 auto; padding: 0 2.5rem 3rem;
}
.rc-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

/* Article Card */
.rc-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    overflow: hidden; transition: border-color 0.2s, box-shadow 0.3s, transform 0.3s;
    text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.rc-card:hover {
    border-color: #c7d4ea; box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.rc-card__img {
    height: 180px; overflow: hidden; background: #f0f4fb;
}
.rc-card__img img { width: 100%; height: 100%; object-fit: cover; }
.rc-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.rc-card__meta {
    display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.625rem;
}
.rc-card__cat {
    font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: #1547BC;
}
.rc-card__type {
    font-size: 0.5625rem; font-weight: 600; text-transform: uppercase;
    padding: 0.125rem 0.5rem; border-radius: 8px; background: #f1f5f9; color: #64748b;
}
.rc-card__title {
    font-size: 1rem; font-weight: 700; color: #121F31; line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rc-card__excerpt {
    font-size: 0.8125rem; color: #475569; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 0.75rem; flex: 1;
}
.rc-card__footer {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.6875rem; color: #94a3b8;
}
.rc-card__read { color: #1547BC; font-weight: 600; font-size: 0.8125rem; }

/* Pagination */
.rc-pagination {
    display: flex; justify-content: center; gap: 0.5rem; padding: 2rem 0;
}
.rc-pagination a, .rc-pagination span {
    padding: 0.5rem 0.875rem; border-radius: 6px; font-size: 0.875rem;
    text-decoration: none; color: #475569; border: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.rc-pagination a:hover { border-color: #1547BC; color: #1547BC; }
.rc-pagination .current { background: #1547BC; color: #fff; border-color: #1547BC; }

/* CTA Banner */
.rc-cta {
    background: #121F31; padding: 3rem 2.5rem; text-align: center;
}
.rc-cta h2 { color: #fff; font-size: 1.375rem; font-weight: 700; margin-bottom: 0.5rem; }
.rc-cta p { color: rgba(255,255,255,0.7); margin-bottom: 1.25rem; }
.rc-cta__btn {
    display: inline-block; background: #FFA000; color: #121F31;
    padding: 12px 32px; border-radius: 6px; font-weight: 700;
    text-decoration: none; transition: background 0.2s;
}
.rc-cta__btn:hover { background: #e69000; }

/* Responsive */
@media (max-width: 1024px) {
    .rc-paths { grid-template-columns: repeat(2, 1fr); }
    .rc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .rc-hero { padding: 2rem 1.25rem 1.5rem; }
    .rc-hero h1 { font-size: 1.5rem; }
    .rc-paths { grid-template-columns: 1fr; padding: 0 1.25rem 1.5rem; }
    .rc-grid { grid-template-columns: 1fr; }
    .rc-grid-section { padding: 0 1.25rem 2rem; }
    .rc-filters { gap: 0.375rem; }
    .rc-filter { font-size: 0.75rem; padding: 0.375rem 0.75rem; }
}
