/* Expert Insights - BEM Methodology */
.expert-insights {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: #2d3748;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* VARIABLES */
:root {
    /* Colors */
    --ei-primary: #8a3df9;
    /* More vibrant purple */
    --ei-primary-dark: #6a2cc5;
    --ei-primary-light: #b07afc;
    --ei-primary-lighter: #e9d8fd;
    --ei-primary-lightest: #f8f5ff;

    --ei-secondary: #3182ce;
    --ei-secondary-dark: #2c5282;

    --ei-gray-50: #f9fafb;
    --ei-gray-100: #f3f4f6;
    --ei-gray-200: #e5e7eb;
    --ei-gray-300: #d1d5db;
    --ei-gray-400: #9ca3af;
    --ei-gray-500: #6b7280;
    --ei-gray-600: #4b5563;
    --ei-gray-700: #374151;
    --ei-gray-800: #1f2937;
    --ei-gray-900: #111827;

    --ei-success: #0d9488;
    --ei-warning: #f59e0b;
    --ei-danger: #ef4444;

    /* Shadows */
    --ei-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ei-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --ei-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ei-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --ei-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --ei-radius-sm: 0.125rem;
    --ei-radius: 0.25rem;
    --ei-radius-md: 0.375rem;
    --ei-radius-lg: 0.5rem;
    --ei-radius-xl: 0.75rem;
    --ei-radius-2xl: 1rem;
    --ei-radius-full: 9999px;

    /* Transitions */
    --ei-transition: all 0.3s ease;
}

/* HERO SECTION */
.expert-insights__hero {
    background: linear-gradient(135deg, var(--ei-primary-lightest) 0%, #ffffff 100%);
    position: relative;
    padding: 5rem 0 3rem;
    overflow: hidden;
    border-bottom: 1px solid var(--ei-gray-200);
}

.expert-insights__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.expert-insights__hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 auto;
}

.expert-insights__title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ei-primary-dark);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.expert-insights__title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 30%;
    width: 40%;
    height: 4px;
    background: var(--ei-primary);
    border-radius: var(--ei-radius-full);
}

.expert-insights__subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--ei-gray-700);
}

.expert-insights__badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--ei-primary) 0%, var(--ei-primary-dark) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--ei-radius-lg);
    margin-top: 1rem;
    box-shadow: var(--ei-shadow-lg);
}

.expert-insights__badge-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: white;
}

.expert-insights__badge p {
    margin: 0;
    font-weight: 600;
}

/* CONTENT LAYOUT */
.expert-insights__content {
    padding: 3rem 0;
    background-color: var(--ei-gray-50);
}

.expert-insights__grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

/* SIDEBAR */
.expert-insights__sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.expert-insights__featured-expert {
    background: white;
    border-radius: var(--ei-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--ei-shadow-md);
    text-align: center;
    border: 1px solid var(--ei-gray-200);
    transition: var(--ei-transition);
}

.expert-insights__featured-expert:hover {
    transform: translateY(-5px);
    box-shadow: var(--ei-shadow-lg);
    border-color: var(--ei-primary-lighter);
}

.expert-insights__section-title {
    color: var(--ei-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.expert-insights__section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--ei-primary-light);
    border-radius: var(--ei-radius-full);
}

.expert-insights__expert-photo-container {
    width: 150px;
    height: 150px;
    border-radius: var(--ei-radius-full);
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--ei-primary-lighter);
    box-shadow: var(--ei-shadow);
    position: relative;
}

.expert-insights__expert-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.expert-insights__featured-expert:hover .expert-insights__expert-photo {
    transform: scale(1.05);
}

.expert-insights__expert-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--ei-gray-900);
}

.expert-insights__expert-title {
    color: var(--ei-gray-600);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.expert-insights__cta-sidebar {
    background: linear-gradient(135deg, var(--ei-primary-light) 0%, var(--ei-primary) 100%);
    color: white;
    padding: 1.75rem;
    border-radius: var(--ei-radius-lg);
    text-align: center;
    box-shadow: var(--ei-shadow-md);
    position: relative;
    overflow: hidden;
}

.expert-insights__cta-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
}

.expert-insights__cta-sidebar p {
    margin-bottom: 1.25rem;
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.5;
    position: relative;
}

/* MAIN CONTENT */
.expert-insights__main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.expert-insights__content-container {
    background: white;
    border-radius: var(--ei-radius-lg);
    box-shadow: var(--ei-shadow-md);
    overflow: hidden;
    border: 1px solid var(--ei-gray-200);
}

/* TABS */
.expert-insights__tabs {
    display: flex;
    background: var(--ei-gray-100);
    border-bottom: 1px solid var(--ei-gray-200);
    padding: 0.5rem 0.5rem 0;
    flex-wrap: wrap;
    /* Allow tabs to wrap on smaller screens if needed */
}

.expert-insights__tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: var(--ei-radius) var(--ei-radius) 0 0;
    color: var(--ei-gray-700);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--ei-transition);
    border-bottom: 3px solid transparent;
    margin-right: 0.25rem;
    margin-bottom: -1px;
    /* Align border with container border */
    white-space: nowrap;
    /* Prevent text wrapping */
}

.expert-insights__tab-btn:hover {
    color: var(--ei-primary);
    background-color: rgba(138, 61, 249, 0.1);
}

.expert-insights__tab-btn--active {
    color: var(--ei-primary);
    background-color: white;
    border-bottom-color: var(--ei-primary);
}

.expert-insights__tab-content {
    padding: 2rem;
}

.expert-insights__tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.expert-insights__tab-pane--active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CARD STYLES */
.expert-insights__card {
    display: flex;
    border: 1px solid var(--ei-gray-200);
    border-radius: var(--ei-radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--ei-transition);
    background-color: white;
    cursor: pointer;
    /* Indicate the whole card is clickable */
}

.expert-insights__card:last-of-type {
    margin-bottom: 0;
    /* Remove margin from the last card before load more */
}

.expert-insights__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ei-shadow-lg);
    border-color: var(--ei-primary-lighter);
}

.expert-insights__card-content {
    flex: 1;
    padding: 1.5rem;
}

.expert-insights__card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    /* Adjusted gap for wrapping */
    margin-bottom: 0.75rem;
    align-items: center;
}

.expert-insights__card-type {
    background: var(--ei-primary-lightest);
    color: var(--ei-primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--ei-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.expert-insights__card-author,
.expert-insights__card-read-time {
    color: var(--ei-gray-600);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    /* Prevent wrapping */
}

.expert-insights__card-read-time::before {
    content: '\f017';
    /* Clock icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    /* Ensure solid icon */
    margin-right: 0.35rem;
    font-size: 0.8em;
    /* Slightly smaller icon */
    color: var(--ei-gray-500);
}

.expert-insights__card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--ei-gray-900);
    line-height: 1.3;
}

/* Make title clickable visually */
.expert-insights__card-title a {
    color: inherit;
    text-decoration: none;
}

.expert-insights__card:hover .expert-insights__card-title {
    color: var(--ei-primary);
}


.expert-insights__card-excerpt {
    color: var(--ei-gray-700);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    /* Limit excerpt lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.6em * 3);
    /* Reserve space for 3 lines */
}

.expert-insights__card-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    /* Adjusted gap for wrapping */
}

.expert-insights__card-metrics span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ei-gray-600);
    font-size: 0.875rem;
}

.expert-insights__card-metrics span i {
    color: var(--ei-gray-400);
}

.expert-insights__card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--ei-gray-50);
    border-left: 1px solid var(--ei-gray-200);
    min-width: 150px;
    /* Ensure enough space for button */
}

/* LOAD MORE BUTTON */
.expert-insights__load-more {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    /* Add space above button */
    border-top: 1px solid var(--ei-gray-100);
    /* Subtle separator */
}

.expert-insights__all-loaded {
    color: var(--ei-gray-500);
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

.expert-insights__load-more-btn {
    padding: 0.75rem 2rem;
    border-radius: var(--ei-radius-full);
    transition: var(--ei-transition);
    color: var(--ei-primary) !important;
    /* Use primary color for outline */
    border-color: var(--ei-primary) !important;
    /* Use primary color for outline */
    background-color: transparent !important;
}

.expert-insights__load-more-btn:hover {
    background-color: var(--ei-primary-lightest) !important;
    color: var(--ei-primary-dark) !important;
    border-color: var(--ei-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--ei-shadow-sm);
}

.expert-insights__load-more-btn i {
    margin-right: 0.5rem;
}

/* CTA SECTION */
.expert-insights__cta-section {
    background: linear-gradient(135deg, var(--ei-primary) 0%, var(--ei-primary-dark) 100%);
    color: white;
    border-radius: var(--ei-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ei-shadow-lg);
}

.expert-insights__cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.expert-insights__cta-content {
    position: relative;
    z-index: 1;
}

.expert-insights__cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.expert-insights__cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* MOBILE MENU */
.expert-insights__mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: none;
    /* Hidden by default, shown via JS/media query */
    align-items: center;
    justify-content: space-around;
    /* Even distribution */
    padding: 0.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.expert-insights__mobile-menu-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.25rem;
    /* Adjusted padding */
    background: none;
    border: none;
    color: var(--ei-gray-600);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--ei-transition);
    text-align: center;
}

.expert-insights__mobile-menu-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    width: 24px;
    /* Fixed width for icon */
    height: 24px;
    /* Fixed height for icon */
    display: flex;
    align-items: center;
    justify-content: center;
}

.expert-insights__mobile-menu-item span {
    line-height: 1.2;
}

.expert-insights__mobile-menu-item--active {
    color: var(--ei-primary);
    /* Optional: subtle background on active */
    /* background-color: var(--ei-primary-lightest); */
    /* border-radius: var(--ei-radius-md); */
}

/* MOBILE FILTERS */
.expert-insights__mobile-filters {
    position: sticky;
    /* Sticks below header */
    top: 60px;
    /* Adjust based on header height */
    left: 0;
    right: 0;
    background: white;
    display: none;
    /* Hidden by default, shown via JS/media query */
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    z-index: 40;
    /* Below header, above content */
    border-bottom: 1px solid var(--ei-gray-200);
}

.expert-insights__mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ei-gray-100);
    border: 1px solid var(--ei-gray-300);
    border-radius: var(--ei-radius-md);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--ei-gray-700);
    cursor: pointer;
    white-space: nowrap;
}

.expert-insights__mobile-filter-toggle i {
    margin-right: 0.5rem;
}

.expert-insights__search-container {
    display: flex;
    flex: 1;
    margin-left: 0.75rem;
    position: relative;
}

.expert-insights__search-input {
    flex: 1;
    border: 1px solid var(--ei-gray-300);
    border-radius: var(--ei-radius-md);
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--ei-gray-700);
}

.expert-insights__search-input:focus {
    border-color: var(--ei-primary);
    box-shadow: 0 0 0 2px var(--ei-primary-lighter);
}

.expert-insights__search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ei-gray-500);
    cursor: pointer;
    padding: 0.25rem;
}

.expert-insights__search-btn:hover {
    color: var(--ei-primary);
}

/* BUTTON STYLES */
.expert-insights__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.925rem;
    text-align: center;
    border-radius: var(--ei-radius-md);
    transition: var(--ei-transition);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    line-height: 1.4;
    /* Ensure text aligns well */
    white-space: nowrap;
    /* Prevent button text wrapping */
}

.expert-insights__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--ei-shadow-md);
}

.expert-insights__btn--primary {
    background-color: var(--ei-primary);
    color: white !important;
    border-color: var(--ei-primary);
}

.expert-insights__btn--primary:hover {
    background-color: var(--ei-primary-dark);
    border-color: var(--ei-primary-dark);
}

.expert-insights__btn--outline {
    background-color: transparent;
    color: white !important;
    /* Default for use in colored containers */
    border-color: white;
    /* Default */
}

/* Specific override for sidebar CTA */
.expert-insights__cta-sidebar .expert-insights__btn--outline {
    color: white !important;
    border-color: white;
}

.expert-insights__cta-sidebar .expert-insights__btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Specific override for load more */
.expert-insights__load-more .expert-insights__btn--outline {
    color: var(--ei-primary) !important;
    border-color: var(--ei-primary);
}

.expert-insights__load-more .expert-insights__btn--outline:hover {
    background-color: var(--ei-primary-lightest);
    color: var(--ei-primary-dark) !important;
    border-color: var(--ei-primary-dark);
}


.expert-insights__btn--block {
    display: block;
    width: 100%;
}

.expert-insights__btn--large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--ei-radius-lg);
    background-color: white;
    color: var(--ei-primary) !important;
    border-color: white;
}

.expert-insights__btn--large:hover {
    background-color: var(--ei-gray-100);
    color: var(--ei-primary-dark) !important;
}

/* No Results Message */
.expert-insights__no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ei-gray-500);
}

.expert-insights__no-results i {
    font-size: 2.5rem;
    color: var(--ei-gray-400);
    margin-bottom: 1rem;
}

.expert-insights__no-results h3 {
    font-size: 1.25rem;
    color: var(--ei-gray-800);
    margin-bottom: 0.5rem;
}

.expert-insights__no-results p {
    margin-bottom: 1.5rem;
}

#clearSearch {
    /* Style the clear search button */
    margin-top: 1rem;
}


/* Skeleton Loading Placeholder */
.expert-insights__skeleton {
    background: linear-gradient(90deg, var(--ei-gray-200) 25%, var(--ei-gray-100) 50%, var(--ei-gray-200) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: var(--ei-radius-md);
    display: inline-block;
    vertical-align: middle;
}

/* Apply skeleton styles to card structure */
.expert-insights__skeleton-card {
    pointer-events: none;
    /* Disable interaction */
    border-color: var(--ei-gray-200);
    box-shadow: none;
}

.expert-insights__skeleton-card:hover {
    transform: none;
    box-shadow: none;
}

.expert-insights__skeleton-card .expert-insights__card-content {
    padding-bottom: 1.5rem;
    /* Match normal padding */
}

.expert-insights__skeleton-card .expert-insights__card-meta .expert-insights__skeleton {
    margin-right: 1rem;
}

.expert-insights__skeleton-card .expert-insights__card-title.expert-insights__skeleton {
    height: 28px;
    margin-bottom: 0.75rem;
    /* Match normal title margin */
    width: 90%;
}

.expert-insights__skeleton-card .expert-insights__card-excerpt.expert-insights__skeleton {
    height: calc(1.6em * 3);
    /* Match excerpt height */
    margin-bottom: 1.25rem;
    /* Match normal excerpt margin */
    width: 100%;
}

.expert-insights__skeleton-card .expert-insights__card-metrics .expert-insights__skeleton {
    margin-right: 1.5rem;
    width: 60px;
    height: 20px;
}

.expert-insights__skeleton-card .expert-insights__card-cta .expert-insights__skeleton {
    width: 100px;
    height: 40px;
    /* Match button height */
}


@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* RESPONSIVE STYLES */
@media (max-width: 1200px) {
    .expert-insights__grid {
        grid-template-columns: 280px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 991px) {
    .expert-insights__grid {
        grid-template-columns: 1fr;
    }

    .expert-insights__sidebar {
        margin-bottom: 0;
        /* Removed bottom margin */
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .expert-insights__title {
        font-size: 2.5rem;
    }

    .expert-insights__content {
        padding-bottom: 5rem;
        /* Space for mobile nav */
    }

    .expert-insights__tabs {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 767px) {
    .expert-insights__hero {
        padding: 2.5rem 0 2rem;
    }

    .expert-insights__title {
        font-size: 2rem;
    }

    .expert-insights__subtitle {
        font-size: 1.125rem;
        padding: 0 1rem;
    }

    .expert-insights__sidebar {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        /* Adjusted gap for mobile */
    }

    .expert-insights__card {
        flex-direction: column;
    }

    .expert-insights__card-cta {
        border-left: none;
        border-top: 1px solid var(--ei-gray-200);
        min-width: auto;
        /* Allow button to size naturally */
        padding: 1rem 1.5rem;
        /* Adjust padding */
    }

    .expert-insights__card-cta .expert-insights__btn {
        width: 100%;
        /* Make button full width */
    }

    .expert-insights__tabs {
        display: none;
        /* Hide desktop tabs */
    }

    .expert-insights__mobile-nav {
        display: flex;
        /* Show mobile nav */
    }

    .expert-insights__mobile-filters {
        display: flex;
        /* Show mobile filters */
        top: 55px;
        /* Adjust if header height changes */
    }

    .expert-insights__hero {
        padding-top: 4.5rem;
        /* Space for mobile filters + some padding */
    }

    .expert-insights__content {
        padding-top: 1.5rem;
        /* Reduce top padding as hero has more */
        padding-bottom: 6rem;
        /* More Space for mobile nav */
    }

    .expert-insights__tab-content {
        padding: 1.5rem 1rem;
    }

    .expert-insights__cta-content h2 {
        font-size: 1.75rem;
        /* Adjusted size */
    }

    .expert-insights__cta-content p {
        font-size: 1rem;
    }

    .expert-insights__cta-section {
        padding: 2.5rem 1.5rem;
        /* Adjusted padding */
    }

    .expert-insights__load-more {
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {
    .expert-insights__title {
        font-size: 1.75rem;
    }

    .expert-insights__subtitle {
        font-size: 1rem;
    }

    .expert-insights__badge {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .expert-insights__badge p {
        font-size: 0.875rem;
    }

    .expert-insights__badge-icon {
        font-size: 1.25rem;
        margin-right: 0.75rem;
    }

    .expert-insights__card-title {
        font-size: 1.125rem;
    }

    .expert-insights__card-excerpt {
        font-size: 0.9rem;
        min-height: calc(1.6em * 3);
        /* Ensure space for 3 lines */
    }

    .expert-insights__card-meta {
        gap: 0.3rem 0.75rem;
        /* Tighter gap */
    }

    .expert-insights__card-metrics {
        gap: 0.75rem 1rem;
        /* Tighter gap */
    }

    .expert-insights__mobile-menu-item span {
        font-size: 0.65rem;
        /* Even smaller text */
    }

    .expert-insights__mobile-menu-item i {
        font-size: 1.1rem;
        margin-bottom: 0.15rem;
        height: 20px;
    }

    .expert-insights__mobile-filters {
        padding: 0.5rem 0.75rem;
        top: 50px;
        /* Adjust if needed */
    }

    .expert-insights__mobile-filter-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .expert-insights__search-input {
        font-size: 0.8rem;
        padding: 0.4rem 2rem 0.4rem 0.75rem;
    }

    .expert-insights__hero {
        padding-top: 4rem;
        /* Adjust based on filter bar height */
    }

    .expert-insights__cta-content h2 {
        font-size: 1.5rem;
    }

    .expert-insights__btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.875rem;
    }

    .expert-insights__btn--large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* ACCESSIBILITY FOCUS STYLES */
.expert-insights__btn:focus-visible,
.expert-insights__tab-btn:focus-visible,
.expert-insights__mobile-menu-item:focus-visible,
.expert-insights__mobile-filter-toggle:focus-visible,
.expert-insights__search-input:focus-visible,
.expert-insights__search-btn:focus-visible,
.expert-insights__card:focus-visible {
    /* Add focus for card */
    outline: 3px solid var(--ei-primary-light);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px var(--ei-primary-lighter);
    /* Optional extra glow */
}

.expert-insights__card:focus-visible {
    border-color: var(--ei-primary);
    /* Highlight border on focus */
}

/* PRINT STYLES */
@media print {
    :root {
        --ei-primary: #000000;
        /* Simplify colors */
        --ei-gray-900: #000000;
        --ei-gray-700: #333333;
        --ei-gray-600: #555555;
        --ei-gray-200: #cccccc;
        --ei-gray-50: #ffffff;
    }

    body {
        font-size: 10pt;
        color: #000;
    }

    .expert-insights__hero,
    .expert-insights__sidebar,
    .expert-insights__tabs,
    .expert-insights__cta-section,
    .expert-insights__mobile-nav,
    .expert-insights__mobile-filters,
    .expert-insights__load-more,
    .expert-insights__card-cta,
    .expert-insights__badge,
    .expert-insights__card-metrics {
        display: none;
    }

    .expert-insights__content,
    .expert-insights__hero-content,
    .expert-insights__tab-content,
    .expert-insights__card-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    .expert-insights__grid {
        display: block;
        /* Stack content */
    }

    .expert-insights__main {
        gap: 1rem;
    }

    .expert-insights__title {
        font-size: 18pt;
        margin-bottom: 0.5rem;
        color: #000;
    }

    .expert-insights__title::after {
        display: none;
    }

    .expert-insights__subtitle {
        font-size: 11pt;
        margin-bottom: 1rem;
        color: #333;
    }

    .expert-insights__card {
        border: 1px solid #ccc;
        box-shadow: none;
        margin-bottom: 1rem;
        page-break-inside: avoid;
        /* Prevent cards breaking across pages */
        cursor: default;
    }

    .expert-insights__card:hover {
        transform: none;
        box-shadow: none;
        border-color: #ccc;
    }

    .expert-insights__card-title {
        font-size: 12pt;
        color: #000 !important;
        /* Ensure title is black */
    }

    .expert-insights__card-excerpt {
        -webkit-line-clamp: unset;
        /* Show full excerpt */
        overflow: visible;
        min-height: auto;
        color: #333;
    }

    .expert-insights__card-meta {
        font-size: 9pt;
        color: #555;
        margin-bottom: 0.5rem;
    }

    .expert-insights__card-type {
        border: 1px solid #ccc;
        background: #eee;
        color: #000;
        padding: 0.1rem 0.4rem;
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    a[href^="http"]::after,
    a[href^="https"]::after {
        content: " (" attr(href) ")";
        /* Show URLs */
        font-size: 8pt;
        color: #555;
    }
}