.rs-c585c6ca-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    font-family: inherit;
}

/* Sidebar */
.rs-c585c6ca-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.rs-c585c6ca-filter-title {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 700;
}
.rs-c585c6ca-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.rs-c585c6ca-filter-buttons.vertical {
    flex-direction: column;
}
.rs-c585c6ca-btn {
    background: #fff;
    border: 1px solid #e9ecef;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}
.rs-c585c6ca-btn:hover {
    background-color: #0d3a5f !important;
    border-color: #0d3a5f !important;
    color: #ffffff !important;
}


/* Main Content */
.rs-c585c6ca-main {
    flex-grow: 1;
    min-width: 0;
}
.rs-c585c6ca-results-count {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #143152;
}

/* Study Item */
.rs-c585c6ca-study-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    display: none; /* hidden by default for filtering */
}
.rs-c585c6ca-study-item.show {
    display: block;
}
.rs-c585c6ca-study-item.open {
    border-color: #00b7c3;
    background: #f8fbfa;
}

.rs-c585c6ca-study-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
}
.rs-c585c6ca-study-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rs-c585c6ca-mobile-tag-wrapper {
    display: block;
    text-align: left;
}

.rs-c585c6ca-study-cat {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    display: block;
}
.rs-c585c6ca-study-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}
.rs-c585c6ca-study-excerpt {
    margin: 0;
    font-size: 0.95rem;
    color: #495057;
}

.rs-c585c6ca-study-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    flex-shrink: 0;
}
.rs-c585c6ca-status-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    color: #fff;
    white-space: nowrap;
    display: inline-block;
}
.status-green { background: #28a745; }
.status-yellow { background: #d4a72c; }
.status-red { background: #e06d6d; }

.rs-c585c6ca-desktop-only {
    display: none !important; /* Always hide as it's now top-left globally */
}
.rs-c585c6ca-mobile-only {
    display: inline-block !important; /* Always show as it's now top-left globally */
}

.rs-c585c6ca-study-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}
.rs-c585c6ca-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.rs-c585c6ca-study-item.open .rs-c585c6ca-icon-wrapper {
    transform: rotate(180deg);
}

.rs-c585c6ca-study-body {
    display: none;
    padding: 0 25px 25px 25px;
    border-top: 1px solid #e9ecef;
    margin-top: -10px; /* pull up slightly */
    padding-top: 25px;
}
.rs-c585c6ca-study-item.open .rs-c585c6ca-study-body {
    display: block;
}
.rs-c585c6ca-wysiwyg {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}
.rs-c585c6ca-wysiwyg h1, .rs-c585c6ca-wysiwyg h2, .rs-c585c6ca-wysiwyg h3, .rs-c585c6ca-wysiwyg h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #143152;
}
.rs-c585c6ca-wysiwyg ul {
    padding-left: 20px;
    margin-bottom: 15px;
}
.rs-c585c6ca-wysiwyg p {
    margin-bottom: 15px;
}

@media (max-width: 991px) {
    .rs-c585c6ca-container {
        flex-direction: column;
    }
    .rs-c585c6ca-sidebar {
        width: 100%;
        flex-direction: row;
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 15px;
    }
    .rs-c585c6ca-filter-group {
        flex-shrink: 0;
        min-width: max-content;
    }
    .rs-c585c6ca-filter-buttons.vertical {
        flex-direction: row;
    }
    .rs-c585c6ca-study-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .rs-c585c6ca-study-meta {
        align-items: flex-start;
        width: 100%;
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
    
    .rs-c585c6ca-study-info {
        width: 100%;
    }
    
    .rs-c585c6ca-study-toggle-wrapper {
        display: flex;
        width: 100%;
        justify-content: flex-end;
        margin-top: 0;
    }
}
