/* Resource Center – Featured CFA full width at top, then sidebar + main */
.rc-featured-outer {
    width: 100%;
    margin-bottom: 0;
}

.rc-featured-area {
    width: 100%;
    padding: 2rem 0;
}

.rc-featured-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.rc-page {
    display: flex;
    flex-direction: column;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.rc-page__body {
    display: flex;
    gap: 2.5rem;
}

/* Sidebar */
.rc-sidebar {
    flex: 0 0 260px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.5rem;
}

.rc-sidebar__title {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #212529;
}

.rc-filter-group {
    margin-bottom: 1.75rem;
}

.rc-filter-group:last-child {
    margin-bottom: 0;
}

.rc-filter-group__title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #495057;
}

.rc-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rc-filter-list li {
    margin-bottom: 0.5rem;
}

.rc-radio,
.rc-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #212529;
}

.rc-radio input,
.rc-checkbox input {
    margin: 0;
    width: 1rem;
    height: 1rem;
}

.rc-checkbox input {
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: transparent;
    flex-shrink: 0;
}

.rc-checkbox input:checked {
    background-color: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='%23fff' d='M4 8L0 4.5 1.5 3 4 5.5 10.5 0 12 1.5z'/%3E%3C/svg%3E");
    background-size: 0.65em 0.55em;
    background-repeat: no-repeat;
    background-position: center;
}

.rc-radio span,
.rc-checkbox span {
    flex: 1;
}

/* Main content */
.rc-main {
    flex: 1;
    min-width: 0;
}

.rc-results {
    width: 100%;
}

/* Featured block – inside full-width area */
.rc-featured-area .rc-featured-wrap {
    margin-bottom: 0;
}

.rc-featured-wrap {
    margin-bottom: 2rem;
}

.rc-featured {
    display: block;
    padding: 1.5rem;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    position: relative;
}

.rc-featured__badge {
    display: inline-block;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--e-global-color-primary);
    border-radius: 8px 8px 8px 8px;
    padding: 0 15px 0 15px;
    margin-bottom: 20px;
}

.rc-featured__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--e-global-color-primary);
    margin-bottom: 0.5rem;
}

.rc-featured__title {
    margin: 0 0 0.5rem;
    font-size: 16px;
    line-height: 1.35;
}

.rc-featured__title a {
    color: var(--e-global-color-tertiary);
    text-decoration: none;
}

.rc-featured__title a:hover {
    color: var(--e-global-color-primary);
}

.rc-featured__meta {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.rc-featured__excerpt {
    margin: 0 0 1rem;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
}

.rc-featured__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--e-global-color-primary);
    text-decoration: underline;
}

.rc-featured__link:hover {
    color: var(--e-global-color-primary);
}

/* Resource grid (cards) – horizontal divider full width (not cut by gap) */
.rc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 3rem;
}

.rc-grid .rc-card {
    position: relative;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rc-grid .rc-card:nth-child(2n-1):not(:nth-last-child(-n+2))::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(200% + 2rem);
    height: 2px;
    background: #e9ecef;
}

.rc-card {
    padding: 1.25rem 0;
}

.rc-card__tag {
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--e-global-color-primary);
    border-radius: 8px 8px 8px 8px;
    padding: 0 10px 0 10px;
    display: inline-block;
    margin-bottom: 20px;
}

.rc-card__title {
    margin: 0 0 0.5rem;
    font-size: 14px;
    line-height: 22px;
    color: var(--e-global-color-tertiary);
}

.rc-card__title a {
    color: var(--e-global-color-tertiary);
    text-decoration: none;
}

.rc-card__title a:hover {
    color: var(--e-global-color-primary);
}

.rc-card__excerpt {
    margin: 0 0 1.5rem;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    max-height: calc(1.5em * 4);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.rc-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--e-global-color-primary);
    text-decoration: underline;
    margin-top: auto;
}

.rc-card__link:hover {
    color: var(--e-global-color-primary);
}

.rc-pagination {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    float: none;
}

.rc-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.rc-pagination .nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.125rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--porto-body-color, #777);
    text-decoration: none;
    text-align: center;
    background: #fff;
    border: 1px solid var(--porto-gray-5, #e9ecef);
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.rc-pagination .nav-links .page-numbers + .page-numbers {
    margin-left: -1px;
}

.rc-pagination .nav-links .page-numbers:first-child {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.rc-pagination .nav-links .page-numbers:last-child {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.rc-pagination .nav-links a.page-numbers:hover {
    position: relative;
    z-index: 2;
    color: var(--porto-heading-color, #212529);
    background-color: var(--porto-gray-5, #e9ecef);
    border-color: var(--porto-gray-5, #e9ecef);
}

.rc-pagination .nav-links .page-numbers.current {
    position: relative;
    z-index: 3;
    color: #fff;
    background-color: var(--e-global-color-primary, var(--porto-primary-color));
    border-color: var(--e-global-color-primary, var(--porto-primary-color));
    cursor: default;
}

.rc-pagination .nav-links .prev,
.rc-pagination .nav-links .next {
    min-width: 2.5rem;
    padding: 0.5rem 0.75rem;
}
.rc-pagination .nav-links .prev:before,
.rc-pagination .nav-links .next:before {
    top: 0.5rem;
}

.rc-pagination .nav-links .page-numbers.dots {
    cursor: default;
    top: 0;
    color: gray;
}

/* No results / loading */
.rc-no-results {
    padding: 2rem;
    text-align: center;
    color: #6c757d;
}

.rc-results.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
    .rc-page__body {
        flex-direction: column;
    }

    .rc-sidebar {
        flex: none;
        width: 100%;
    }

    .rc-grid {
        grid-template-columns: 1fr;
    }

    .rc-grid .rc-card:nth-child(2n-1):not(:nth-last-child(-n+2))::after {
        display: none;
    }

    .rc-grid .rc-card {
        border-bottom: 1px solid #e9ecef;
    }

    .rc-card:last-child {
        border-bottom: 0;
    }
}

/* Split layout: filters and results in separate Elementor columns */
.rc-filters-wrap {
    display: block;
}

.rc-results-wrap {
    display: block;
    width: 100%;
}

.rc-results-wrap.rc-main {
    flex: none;
}
