/* ============================================
   GLOCERT RESOURCE CENTER STYLES
   Modern, A-Lign-inspired design with Glocert branding
   ============================================ */

:root {
    --rc-primary: #003d2e;
    --rc-primary-light: #005844;
    --rc-accent: #00c896;
    --rc-dark: #0a1612;
    --rc-gray: #6b7c78;
    --rc-light: #f8fafa;
    --rc-white: #ffffff;
    --rc-border: rgba(0, 0, 0, 0.08);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================
   RESOURCE HUB HERO
   ============================================ */
.rc-hero {
    background: linear-gradient(135deg, var(--rc-dark) 0%, var(--rc-primary) 50%, var(--rc-primary-light) 100%);
    padding: 100px 5% 60px;
    position: relative;
    overflow: hidden;
}

.rc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 200, 150, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 200, 150, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.rc-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.rc-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.rc-hero-breadcrumb a,
.rc-hero-breadcrumb span {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.rc-hero-breadcrumb a:hover {
    color: var(--rc-accent);
}

.rc-hero-breadcrumb svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.rc-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--rc-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.rc-hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Split Hero Layout (with Quick Navigation) */
.rc-hero-split {
    padding: 100px 5% 80px;
}

.rc-hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
}

.rc-hero-content {
    color: var(--rc-white);
}

.rc-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.rc-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rc-hero-btn svg {
    width: 18px;
    height: 18px;
}

.rc-hero-btn-primary {
    background: var(--rc-accent);
    color: var(--rc-dark);
}

.rc-hero-btn-primary:hover {
    background: #00e6a8;
    transform: translateY(-2px);
}

.rc-hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--rc-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.rc-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Quick Navigation Card */
.rc-hero-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 32px;
}

.rc-hero-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--rc-white);
    margin-bottom: 20px;
}

.rc-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rc-quick-links li {
    margin-bottom: 12px;
}

.rc-quick-links li:last-child {
    margin-bottom: 0;
}

.rc-quick-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.rc-quick-links a:hover {
    background: rgba(0, 200, 150, 0.15);
    transform: translateX(8px);
}

.rc-quick-links a svg {
    width: 20px;
    height: 20px;
    color: var(--rc-accent);
    flex-shrink: 0;
}

/* Responsive Hero */
@media (max-width: 991px) {
    .rc-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .rc-hero-content .rc-hero-breadcrumb {
        justify-content: center !important;
    }
    
    .rc-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .rc-hero-buttons {
        justify-content: center;
    }
    
    .rc-hero-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .rc-hero-buttons {
        flex-direction: column;
    }
    
    .rc-hero-btn {
        justify-content: center;
        width: 100%;
    }
}

/* ============================================
   FILTER BAR (Horizontal Layout for Topic Pages)
   ============================================ */
.rc-filters {
    background: var(--rc-light);
    padding: 20px 5%;
    border-bottom: 1px solid var(--rc-border);
}

.rc-filters-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.rc-filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rc-filter-dropdown {
    position: relative;
}

.rc-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--rc-white);
    border: 1px solid var(--rc-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--rc-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    justify-content: space-between;
}

.rc-filter-btn:hover {
    border-color: var(--rc-primary);
    background: var(--rc-white);
}

.rc-filter-btn svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.rc-filter-dropdown.open .rc-filter-btn svg {
    transform: rotate(180deg);
}

.rc-filter-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    max-height: 0;
    overflow: hidden;
    background: var(--rc-white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    z-index: 100;
    opacity: 0;
    transition: all 0.2s ease;
}

.rc-filter-dropdown.open .rc-filter-menu {
    max-height: 400px;
    overflow-y: auto;
    opacity: 1;
    padding: 12px 0;
}

.rc-filter-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 12px;
    border-bottom: 1px solid var(--rc-border);
    margin-bottom: 8px;
}

.rc-filter-menu-header span {
    font-weight: 600;
    color: var(--rc-dark);
    font-size: 0.9rem;
}

.rc-filter-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 0.95rem;
    color: var(--rc-gray);
}

.rc-filter-menu-item:hover {
    background: var(--rc-light);
    color: var(--rc-dark);
}

.rc-filter-menu-item.selected {
    color: var(--rc-primary);
    font-weight: 500;
}

.rc-filter-menu-item .check {
    width: 18px;
    height: 18px;
    border: 2px solid var(--rc-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.rc-filter-menu-item.selected .check {
    background: var(--rc-primary);
    border-color: var(--rc-primary);
}

.rc-filter-menu-item .check svg {
    display: none;
    width: 12px;
    height: 12px;
    color: var(--rc-white);
}

.rc-filter-menu-item.selected .check svg {
    display: block;
}

.rc-filter-menu-item .count {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--rc-gray);
    opacity: 0.7;
}

/* Active Filter Tags */
#rc-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rc-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--rc-primary);
    color: var(--rc-white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.rc-active-filter button {
    background: none;
    border: none;
    color: var(--rc-white);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.rc-active-filter button:hover {
    opacity: 1;
}

.rc-active-filter button svg {
    width: 14px;
    height: 14px;
}

/* Content Section (for topic pages) */
.rc-content {
    padding: 40px 5% 60px;
    background: var(--rc-white);
}

.rc-content-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.rc-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.rc-results-count {
    font-size: 0.95rem;
    color: var(--rc-gray);
    margin: 0;
}

.rc-view-toggle {
    display: flex;
    gap: 4px;
    background: var(--rc-light);
    padding: 4px;
    border-radius: 8px;
}

.rc-view-btn {
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--rc-gray);
}

.rc-view-btn:hover {
    color: var(--rc-primary);
}

.rc-view-btn.active {
    background: var(--rc-white);
    color: var(--rc-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.rc-view-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Resource Grid */
.rc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rc-grid.list-view {
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Pagination */
.rc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.rc-pagination button {
    padding: 10px 16px;
    background: var(--rc-white);
    border: 1px solid var(--rc-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--rc-gray);
    cursor: pointer;
    transition: all 0.15s ease;
}

.rc-pagination button:hover:not(:disabled) {
    border-color: var(--rc-primary);
    color: var(--rc-primary);
}

.rc-pagination button.active {
    background: var(--rc-primary);
    border-color: var(--rc-primary);
    color: var(--rc-white);
}

.rc-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Loading State */
.rc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.rc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--rc-light);
    border-top-color: var(--rc-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Filter Bar */
@media (max-width: 768px) {
    .rc-filters-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rc-filter-group {
        width: 100%;
    }
    
    .rc-filter-dropdown {
        flex: 1;
    }
    
    .rc-filter-btn {
        width: 100%;
    }
    
    .rc-search-box {
        width: 100%;
    }
    
    .rc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .rc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   ALL RESOURCES SECTION (A-Lign Style)
   ============================================ */
.rc-all-resources {
    padding: 60px 5%;
    background: var(--rc-white);
}

.rc-all-resources-inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Row: Title + Search */
.rc-resources-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 24px;
    flex-wrap: wrap;
}

.rc-resources-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 600;
    color: var(--rc-dark);
    margin: 0;
    margin-left: 18rem;
}

/* Search Box - Dark Style like A-Lign */
.rc-search-box {
    position: relative;
    width: 320px;
    max-width: 100%;
}

.rc-search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: none;
    background: var(--rc-primary);
    color: var(--rc-white);
    transition: all 0.2s ease;
}

.rc-search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.rc-search-input:focus {
    outline: none;
    background: var(--rc-primary-light);
}

.rc-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

/* Resources Layout: Sidebar + Grid */
.rc-resources-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

/* Sidebar Filters */
.rc-sidebar {
    position: sticky;
    top: 10rem;
}

.rc-sidebar-filter {
    border-bottom: 1px solid var(--rc-border);
    margin-bottom: 0;
}

.rc-sidebar-filter-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--rc-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rc-sidebar-filter-btn:hover {
    color: var(--rc-primary);
}

.rc-sidebar-filter-btn svg {
    width: 18px;
    height: 18px;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.rc-sidebar-filter.open .rc-sidebar-filter-btn svg {
    transform: rotate(180deg);
}

.rc-sidebar-filter-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.rc-sidebar-filter.open .rc-sidebar-filter-menu {
    max-height: 500px;
    padding-bottom: 16px;
}

/* Filter Options */
.rc-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--rc-gray);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rc-filter-option:hover {
    color: var(--rc-dark);
}

.rc-filter-option.selected {
    color: var(--rc-primary);
    font-weight: 500;
}

.rc-filter-option .check {
    width: 18px;
    height: 18px;
    border: 2px solid var(--rc-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.rc-filter-option .check svg {
    display: none;
}

.rc-filter-option.selected .check {
    background: var(--rc-primary);
    border-color: var(--rc-primary);
}

.rc-filter-option.selected .check svg {
    display: block;
    color: var(--rc-white);
    width: 12px;
    height: 12px;
}

/* Active Filters in Sidebar */
#rc-active-filters {
    margin-top: 20px;
}

.rc-active-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rc-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 200, 150, 0.1);
    border: 1px solid rgba(0, 200, 150, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--rc-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rc-active-filter:hover {
    background: rgba(0, 200, 150, 0.2);
}

.rc-active-filter svg {
    width: 14px;
    height: 14px;
}

.rc-clear-all {
    color: var(--rc-gray);
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 0;
}

.rc-clear-all:hover {
    color: var(--rc-dark);
}

/* Main Content Area */
.rc-resources-main {
    min-width: 0;
}

/* ============================================
   RESOURCE GRID
   ============================================ */
.rc-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.rc-results-count {
    font-size: 0.95rem;
    color: var(--rc-gray);
}

.rc-results-count strong {
    color: var(--rc-dark);
}

.rc-view-toggle {
    display: flex;
    gap: 8px;
}

.rc-view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rc-light);
    border: 1px solid var(--rc-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rc-view-btn:hover,
.rc-view-btn.active {
    background: var(--rc-primary);
    border-color: var(--rc-primary);
    color: var(--rc-white);
}

.rc-view-btn svg {
    width: 18px;
    height: 18px;
}

/* Resource Grid */
.rc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1400px) {
    .rc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Topic Page Content - Full Width Grid */
.rc-topic-content {
    padding: 60px 5%;
    background: var(--rc-white);
}

.rc-topic-content-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.rc-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .rc-topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rc-topic-grid {
        grid-template-columns: 1fr;
    }
    
    .rc-topic-content {
        padding: 40px 4%;
    }
}

.rc-grid.list-view {
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Resource Card */
.rc-card {
    background: var(--rc-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--rc-border);
}

.rc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 61, 46, 0.1);
}

/* List View Card - No Images */
.rc-grid.list-view .rc-card {
    flex-direction: column;
    border-radius: 8px;
}

.rc-grid.list-view .rc-card-image {
    display: none;
}

.rc-grid.list-view .rc-card-content {
    padding: 20px 24px;
}

.rc-grid.list-view .rc-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.rc-grid.list-view .rc-card-excerpt {
    -webkit-line-clamp: 2;
    margin-bottom: 12px;
}

.rc-grid.list-view .rc-card-type-inline {
    display: inline-flex;
    padding: 4px 10px;
    background: var(--rc-light);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rc-primary);
    margin-right: 12px;
}

.rc-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rc-primary-light), var(--rc-primary));
}

.rc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rc-card:hover .rc-card-image img {
    transform: scale(1.05);
}

.rc-card-type {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--rc-white);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rc-primary);
}

.rc-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rc-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--rc-gray);
}

.rc-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rc-card-date svg {
    width: 14px;
    height: 14px;
}

.rc-card-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rc-card-read-time svg {
    width: 14px;
    height: 14px;
}

.rc-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--rc-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.rc-card:hover h3 {
    color: var(--rc-primary);
}

.rc-card-excerpt {
    font-size: 0.9rem;
    color: var(--rc-gray);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rc-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.rc-card-tag {
    padding: 4px 10px;
    background: var(--rc-light);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--rc-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.rc-card-tag:hover {
    background: rgba(0, 200, 150, 0.15);
    color: var(--rc-primary-light);
}

.rc-card-link {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   FEATURED RESOURCE (Hero Card)
   ============================================ */
.rc-featured {
    margin-bottom: 48px;
}

.rc-featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--rc-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.rc-featured-image {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, var(--rc-primary-light), var(--rc-primary));
}

.rc-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rc-featured-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--rc-accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rc-dark);
}

.rc-featured-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rc-featured-type {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--rc-accent);
    margin-bottom: 16px;
}

.rc-featured-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--rc-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.rc-featured-excerpt {
    font-size: 1.05rem;
    color: var(--rc-gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.rc-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--rc-primary);
    color: var(--rc-white);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.rc-featured-cta:hover {
    background: var(--rc-primary-light);
    transform: translateX(4px);
}

.rc-featured-cta svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   TOPIC HUBS SECTION
   ============================================ */
.rc-topic-hubs {
    padding: 80px 5%;
    background:var(--rc-white);
}

.rc-topic-hubs-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.rc-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.rc-section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rc-accent);
    margin-bottom: 16px;
}

.rc-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--rc-dark);
    margin-bottom: 16px;
}

.rc-section-desc {
    font-size: 1.05rem;
    color: var(--rc-gray);
    max-width: 600px;
    margin: 0 auto;
}

.rc-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.rc-topic-card {
    background: var(--rc-light);
    border-radius: 16px;
    padding: 32px 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.rc-topic-card:hover {
    background: var(--rc-white);
    border-color: var(--rc-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 200, 150, 0.15);
}

.rc-topic-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--rc-primary-light), var(--rc-primary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.rc-topic-card:hover .rc-topic-icon {
    background: var(--rc-accent);
}

.rc-topic-icon svg {
    width: 32px;
    height: 32px;
    color: var(--rc-white);
}

.rc-topic-card h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rc-dark);
    margin-bottom: 8px;
}

.rc-topic-card p {
    font-size: 0.9rem;
    color: var(--rc-gray);
    margin-bottom: 16px;
}

.rc-topic-count {
    font-size: 0.8rem;
    color: var(--rc-primary);
    font-weight: 600;
}

/* ============================================
   PAGINATION
   ============================================ */
.rc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--rc-border);
}

.rc-page-btn {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rc-white);
    border: 1px solid var(--rc-border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--rc-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.rc-page-btn:hover {
    border-color: var(--rc-primary);
    color: var(--rc-primary);
}

.rc-page-btn.active {
    background: var(--rc-primary);
    border-color: var(--rc-primary);
    color: var(--rc-white);
}

.rc-page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.rc-page-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   NEWSLETTER CTA
   ============================================ */
.rc-newsletter {
    background: linear-gradient(135deg, var(--rc-dark) 0%, var(--rc-primary) 100%);
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
}

.rc-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 200, 150, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.rc-newsletter-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.rc-newsletter h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--rc-white);
    margin-bottom: 16px;
}

.rc-newsletter p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.rc-newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.rc-newsletter-input {
    flex: 1;
    padding: 16px 24px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--rc-white);
    transition: all 0.2s ease;
}

.rc-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.rc-newsletter-input:focus {
    outline: none;
    border-color: var(--rc-accent);
    background: rgba(255, 255, 255, 0.15);
}

.rc-newsletter-btn {
    padding: 16px 32px;
    background: var(--rc-accent);
    color: var(--rc-dark);
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rc-newsletter-btn:hover {
    background: #00e6a8;
    transform: translateY(-2px);
}

/* ============================================
   NO RESULTS STATE
   ============================================ */
.rc-no-results {
    text-align: center;
    padding: 80px 20px;
}

.rc-no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--rc-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-no-results-icon svg {
    width: 40px;
    height: 40px;
    color: var(--rc-gray);
}

.rc-no-results h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--rc-dark);
    margin-bottom: 12px;
}

.rc-no-results p {
    color: var(--rc-gray);
    margin-bottom: 24px;
}

.rc-no-results-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--rc-primary);
    color: var(--rc-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.rc-no-results-btn:hover {
    background: var(--rc-primary-light);
}

/* ============================================
   LOADING STATE
   ============================================ */
.rc-loading {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.rc-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--rc-light);
    border-top-color: var(--rc-primary);
    border-radius: 50%;
    animation: rc-spin 0.8s linear infinite;
}

@keyframes rc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1200px) {
    .rc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rc-topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rc-resources-layout {
        grid-template-columns: 200px 1fr;
        gap: 32px;
    }
}

@media (max-width: 991px) {
    .rc-resources-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .rc-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--rc-border);
    }
    
    .rc-sidebar-filter {
        flex: 1;
        min-width: 160px;
        border-bottom: none;
        background: var(--rc-light);
        border-radius: 8px;
        padding: 0 16px;
    }
    
    .rc-sidebar-filter-btn {
        padding: 14px 0;
    }
    
    .rc-sidebar-filter-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--rc-white);
        border: 1px solid var(--rc-border);
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        z-index: 100;
        max-height: 0;
        overflow: hidden;
    }
    
    .rc-sidebar-filter.open .rc-sidebar-filter-menu {
        max-height: 400px;
        padding: 12px;
    }
    
    .rc-sidebar-filter {
        position: relative;
    }
    
    #rc-active-filters {
        width: 100%;
        margin-top: 0;
    }
    
    .rc-featured-card {
        grid-template-columns: 1fr;
    }
    
    .rc-featured-image {
        min-height: 280px;
    }
    
    .rc-featured-content {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .rc-hero {
        padding: 80px 5% 40px;
    }
    
    .rc-resources-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rc-search-box {
        width: 100%;
    }
    
    .rc-grid {
        grid-template-columns: 1fr;
    }
    
    .rc-topic-grid {
        grid-template-columns: 1fr;
    }
    
    .rc-newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .rc-sidebar {
        flex-direction: column;
    }
    
    .rc-sidebar-filter {
        width: 100%;
    }
    
    .rc-pagination {
        flex-wrap: wrap;
    }
}

/* ============================================
   ARTICLE PAGE STYLES
   ============================================ */
.article-hero {
    background: linear-gradient(135deg, var(--rc-dark) 0%, var(--rc-primary) 50%, var(--rc-primary-light) 100%);
    padding: 100px 5% 60px;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 200, 150, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.article-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.article-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--rc-accent);
    color: var(--rc-dark);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.article-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--rc-white);
    margin-bottom: 24px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-author-avatar {
    width: 40px;
    height: 40px;
    background: var(--rc-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--rc-dark);
}

.article-author-info span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Article Content */
.article-content {
    padding: 60px 5%;
    background: var(--rc-white);
}

.article-content-inner {
    max-width: 800px;
    margin: 0 auto;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--rc-dark);
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--rc-dark);
    margin: 48px 0 20px;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--rc-dark);
    margin: 32px 0 16px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 12px;
}

.article-body blockquote {
    border-left: 4px solid var(--rc-accent);
    padding: 20px 24px;
    background: var(--rc-light);
    margin: 32px 0;
    font-style: normal;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.article-body blockquote::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--rc-accent);
    position: absolute;
    top: -10px;
    left: 16px;
    opacity: 0.3;
    line-height: 1;
}

.article-body blockquote p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    color: var(--rc-primary);
    font-weight: 500;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-callout {
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.08), rgba(0, 88, 68, 0.04));
    border: 1px solid rgba(0, 200, 150, 0.2);
    border-radius: 16px;
    padding: 28px;
    margin: 32px 0;
}

.article-callout-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rc-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-callout p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Table of Contents */
.article-toc {
    background: var(--rc-light);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 40px;
}

.article-toc h4 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--rc-gray);
    margin-bottom: 16px;
}

.article-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc li {
    margin-bottom: 8px;
}

.article-toc a {
    color: var(--rc-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.article-toc a:hover {
    color: var(--rc-accent);
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--rc-border);
}

.article-tag {
    padding: 8px 16px;
    background: var(--rc-light);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--rc-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-tag:hover {
    background: rgba(0, 200, 150, 0.15);
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--rc-border);
}

.comparison-table thead th {
    background: var(--rc-primary);
    color: var(--rc-white);
    font-weight: 600;
    font-size: 0.95rem;
}

.comparison-table tbody tr:nth-child(even) {
    background: var(--rc-light);
}

.comparison-table tbody tr:hover {
    background: rgba(0, 200, 150, 0.05);
}

.comparison-table tbody td:first-child {
    font-weight: 600;
    color: var(--rc-primary);
}

/* Documentation Checklist */
.doc-checklist {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.doc-checklist li {
    padding: 16px 20px;
    background: var(--rc-white);
    border: 1px solid var(--rc-border);
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.doc-checklist li::before {
    content: '';
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: var(--rc-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.doc-checklist .doc-required::before {
    background: var(--rc-accent);
}

.doc-checklist .doc-recommended::before {
    background: #ffc107;
}

/* FAQ Accordion */
.faq-item {
    border: 1px solid var(--rc-border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    background: var(--rc-light);
    font-weight: 600;
    color: var(--rc-dark);
    font-size: 1.1rem;
    cursor: default;
}

.faq-answer {
    padding: 20px 24px;
    background: var(--rc-white);
    color: var(--rc-gray);
    line-height: 1.7;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Related Resources */
.related-resources {
    padding: 80px 5%;
    background: var(--rc-light);
}

.related-resources-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.related-resources h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--rc-dark);
    margin-bottom: 32px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 14px;
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
}

/* ============================================
   DOCUMENT CHECKLIST STYLES
   For readiness checklists and audit guides
   ============================================ */
.doc-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.doc-checklist li {
    position: relative;
    padding: 12px 16px 12px 48px;
    margin-bottom: 8px;
    background: var(--rc-light);
    border-radius: 8px;
    border-left: 4px solid var(--rc-border);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.doc-checklist li:hover {
    background: #f0f4f3;
}

.doc-checklist li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--rc-gray);
    border-radius: 4px;
    background: var(--rc-white);
}

.doc-checklist li.doc-required {
    border-left-color: var(--rc-primary);
}

.doc-checklist li.doc-required::before {
    border-color: var(--rc-primary);
}

.doc-checklist li.doc-optional {
    border-left-color: var(--rc-accent);
}

.doc-checklist li.doc-optional::before {
    border-color: var(--rc-accent);
}

/* Roadmap / Timeline Styles */
.roadmap-phase {
    background: var(--rc-white);
    border-radius: 12px;
    border: 1px solid var(--rc-border);
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
}

.roadmap-phase::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 100%;
    width: 3px;
    height: 32px;
    background: linear-gradient(to bottom, var(--rc-accent), transparent);
}

.roadmap-phase:last-child::before {
    display: none;
}

.roadmap-phase h3 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.roadmap-phase h3 .phase-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--rc-primary);
    color: var(--rc-white);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
}

.roadmap-deliverables {
    background: rgba(0, 200, 150, 0.08);
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 20px;
}

.roadmap-deliverables strong {
    color: var(--rc-primary);
    display: block;
    margin-bottom: 8px;
}

/* Milestone Callout */
.milestone-callout {
    background: linear-gradient(135deg, var(--rc-primary) 0%, var(--rc-primary-light) 100%);
    color: var(--rc-white);
    padding: 24px 32px;
    border-radius: 12px;
    margin: 32px 0;
}

.milestone-callout h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--rc-white);
}

.milestone-callout p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.7;
}
